Some request attributes not documented in wiki #245

Closed
opened 2025-12-29 15:19:00 +01:00 by adam · 1 comment
Owner

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 RequestMessage class):

  • 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.

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 `RequestMessage` class): - `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.
adam added the doc label 2025-12-29 15:19:00 +01:00
adam closed this issue 2025-12-29 15:19:00 +01:00
Author
Owner

@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.

@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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net-wiremock#245