RequestBuilder Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Used to construct a HttpRequestMessage object.
public ref class RequestBuilder
public class RequestBuilder
type RequestBuilder = class
Public Class RequestBuilder
- Inheritance
-
RequestBuilder
Constructors
RequestBuilder(TestServer, String) |
Construct a new HttpRequestMessage with the given path. |
Properties
TestServer |
Gets the TestServer instance for which the request is being built. |
Methods
AddHeader(String, String) |
Add the given header and value to the request or request content. |
And(Action<HttpRequestMessage>) |
Configure any HttpRequestMessage properties. |
GetAsync() |
Set the request method to GET and start processing the request. |
PostAsync() |
Set the request method to POST and start processing the request. |
SendAsync(String) |
Set the request method and start processing the request. |