RequestBuilder Class
Used to construct a HttpRequestMessage object.
Namespace: Microsoft.Owin.Testing
Assembly: Microsoft.Owin.Testing (in Microsoft.Owin.Testing.dll)
Inheritance Hierarchy
System.Object
Microsoft.Owin.Testing.RequestBuilder
Syntax
public class RequestBuilder
public ref class RequestBuilder
type RequestBuilder = class end
Public Class RequestBuilder
Constructors
Name | Description | |
---|---|---|
RequestBuilder(TestServer, String) | Construct a new HttpRequestMessage with the given path. |
Methods
Name | Description | |
---|---|---|
AddHeader(String, String) | Add the given header and value to the request or request content. |
|
And(Action<HttpRequestMessage>) | Configure any HttpRequestMessage properties. |
|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetAsync() | Set the request method to GET and start processing the request. |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
PostAsync() | Set the request method to POST and start processing the request. |
|
SendAsync(String) | Set the request method and start processing the request. |
|
ToString() | (Inherited from Object.) |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.Owin.Testing Namespace
Return to top