An open API service indexing awesome lists of open source software.

https://github.com/thomd/httpgen

Generate time-delayed web-resources for testing webpage performance
https://github.com/thomd/httpgen

css javascript network-waterfall

Last synced: about 1 month ago
JSON representation

Generate time-delayed web-resources for testing webpage performance

Awesome Lists containing this project

README

          

# HTTP-Response Generator for Webpage Performance Tests

[![Build Status](https://travis-ci.org/thomd/httpgen.png)](https://travis-ci.org/thomd/httpgen)
[![Known Vulnerabilities](https://snyk.io/test/github/thomd/httpgen/badge.svg)](https://snyk.io/test/github/thomd/httpgen)

Generate dummy webpage resources like CSS, javascript and images for testing webpage performance patterns.

## Install on Heroku

heroku login
heroku create
git push heroku master
heroku open

or use

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/thomd/httpgen)

## Usage

### CSS

/css/?/?/.css

``: response time in seconds

``: size of document in kilo-bytes

``: name for the resource to identify easily in the developer-tools network waterfall

### Javascript

/javascript/?/?/

``: response time in seconds

``: size of document in kilo-bytes

`

``: name for the resource to identify easily in the developer-tools network waterfall

### PNG Image

/image/?/?/?/.png

``: response time in seconds

``: width of the image in pixel

``: height of the image in pixel

``: color of the image in hex-code (without `#`) or prefix with `random`

### QR-code Image

/qr/?/.png

``: response time in seconds

``: content of the QR-code

``: request header as content of the QR-code (for example: `referer`)

### Timeout for simulating a single point of failure (SPOF)

/spof

### JSON

Return clients IP address.

/json/?/?/.json

``: response time in seconds

``: size of document in kilo-bytes

``: name for the resource to identify easily in the developer-tools network waterfall