mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 22:30:41 +01:00
Some request attributes not documented in wiki #245
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dirvo on GitHub (Jan 30, 2020).
I noticed that some request attributes that are available for response templating (https://github.com/WireMock-Net/WireMock.Net/wiki/Response-Templating) are not documented.
The following attributes work for me (basically all the properties of the
RequestMessageclass):request.method- The HTTP method such as GET or POST.request.protocol- The scheme such as http or https.request.host- The name of the host in the URL.request.origin- The base URL of the request which is equivalent to{Protocol}://{Host}:{Port}.I think it would be useful to have this added to the documentation (I couldn't find a way to create a PR for the wiki, so I created this issue instead.
@StefH commented on GitHub (Jan 30, 2020):
@dirvo Thank you. I've updated WIKI.
If you find more errors or missing things, please raise an issue.