Conversation
Request stream only should be consumed if we could find the path in mock files, else don’t consume as the stream will be needed to proxy the request.
|
@sideshowcoder everything works now, take a look at this, let me know if you have some comments. I need you help documenting this into README |
|
Thanks for all your work :) I will look through it as soon as possible not gonna make it today but likely tomorrow. I have to think about a little I guess but first look thorugh looks very good :) |
|
@sideshowcoder no problemo |
There was a problem hiding this comment.
after the https://github.com/sideshowcoder/canned/blob/feature-56_proxy_request/README.md#variable-responses section you could add a new section to the README detailing how the proxy stuff works, this would need to contain some examples on how to use it with the commands to enter and the flow of a request through canned with a proxy enabled.
There was a problem hiding this comment.
@sideshowcoder yep i will do that, but give me till this weekend, because i am travelling till wednesday
|
Looks very good! One thing I would suggest as a refactor is moving the proxy response into its own object, we already have the |
|
@sideshowcoder well it would definitely makes sense, and i also like to do it, but i would propose to have a refactor PR, problems i see currently are
I see that you already got a proposal to use promises, and you found its pros to not weight in for a change, i want to have another try at it, so lets keep this PR paused, and let me work on a proposal for refactor and then come back to this PR ? Do you agree with my idea, because i would really like to make the code organised better and performant, before we do much stuff on additional features, i could make a spec, and then we can work our way up. |
|
@git-jiby-me I'm happy to have this PR in with the small changes according to the comments if you are alright with that. Than we can refactor towards a better split. I fear that if we keep this on hold much is going to move and this is not going to be mergable anymore soon. What do you think about making the small changes + README and merge this and open a 2. PR for the refactor? Or are we already agreeing on this and I missread, if so sorry. |
|
@sideshowcoder i am ok to go with the small changes, i will have them pushed by this week end 👍 |
|
Awesome! |
|
@sideshowcoder i will add documentation some day soon, within this week |
proxyin options as a domain to forward requests with unknown path to