Skip to content

Option to proxy requests for unknown paths #56

Open
@sideshowcoder

Description

If canned is used to stub out requests for a server it can be useful to proxy requests for unknown routes. The idea is to instead of serving a 404 forward the request to specified server and serve the result.

$ canned ./example --proxy=http://example.com 

when querying for a path that is not present in canned like

$ curl http://localhost:3000/i_dont_exist_in_canned

it shoudl issue a query to http://example.com/i_dont_exist_in_canned and serve
whatever the result of this query is.

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions