Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: recognize dynamic hosts #210

Open
DingoEatingFuzz opened this issue Jul 27, 2017 · 2 comments
Open

Feature: recognize dynamic hosts #210

DingoEatingFuzz opened this issue Jul 27, 2017 · 2 comments

Comments

@DingoEatingFuzz
Copy link
Contributor

Pretty much this:

this.get('http://:host/some/route/:here')

I realize this is pretty rare, but I do have a real world need for it. I have an API that provides IPs and expects secondary requests using that IP.

I'd hack together a PR, but due to the way that hosts are given their own registries, it's involved to the point where I'd like to get feedback on whether or not it's right for Pretender.

@jlegrone
Copy link

Another use case:

I'm writing a module to parse swagger/openapi config file(s) and generate a pretender server with mock responses. Matching dynamic hosts would allow me to provide a true catch-all when the pretender server is initialized but resolve openapi config files asynchronously.

@PoslinskiNet
Copy link

Any luck/update with this one? Would be nice to have something like that for wildcard subdomain use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants