Delen via


RequestBuilder Class

Definition

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.

Applies to