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

Add the Host, Protocol, Port and Origin to the Request message so they can be used in templating #62

Conversation

alastairtree
Copy link
Collaborator

Hi

I needed to be able to template responses based on more granular information than was already available in the request object so have added some calculated fields and supporting test. Would you be interested in accepting it back?

  • Add new fields for Host, Origin, protocol and Port during request message creation, derived from the Uri object
  • Allow the new fields to be accessed in the templating engine
  • Add tests for the new fields

alastairtree and others added 3 commits November 17, 2017 18:53
- Add new fields during request message creation, derived from the Uri object
- Allow the new fields to be accessed in the templating engine
- Add tests for the new fields
@StefH StefH merged commit 6c38400 into WireMock-Net:master Nov 18, 2017
@StefH
Copy link
Collaborator

StefH commented Nov 18, 2017

Do you need a new NuGet for this PR?

@alastairtree
Copy link
Collaborator Author

Great thank you. Yes please.

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

Successfully merging this pull request may close these issues.

None yet

2 participants