1.0.1 • Published 8 years ago
parody v1.0.1
Parody
Building web apps that pull information from the environment is all fun and games until you need to modify your request headers.
Now, it can continue to be fun and games, even when you need to modify your request headers!
Quick start
- Run
npm install -g parody
to install the command-line tool - Move to your working directory
- Create a
parody.json
file that has at least the following directives
{
"headers": {
"header_one": "value_one",
"header_two": "value_two"
},
"target": "http://some-awesome-hostname:8080",
"debug": false,
"port": 8080
}
This will add the following HTTP headers to the request:
"header_one" = value_one
"header_two" = value_two
- Run
parody
in your working directory to start a proxy server - Access
http://localhost:$PORT
(where$PORT
is your configured port inparody.json
, or a default of8080
)
Report issues!
If you encounter anything strange while using parody, make an issue, or ask me on Twitter.
Incoming improvements
- expanded documentation
- revamped debug mode
- HTTPS support
See also:
Parody uses Node HTTP Proxy to add headers to HTTP requests. If you're looking to programmatically proxy things, check out that project.
1.0.1
8 years ago