RequestOptions
Options that can be used to control the behavior of a request sent by a client.
Gets or sets a value indicating whether the response content should be
buffered in-memory by the pipeline. This value defaults to true.
Gets or sets the CancellationToken used for the duration
of the call to Send.
Gets or sets a value that describes when a client's service method will
raise an exception if the underlying response is considered an error.
public RequestOptions()
Initializes a new instance of the RequestOptions class
Adds the specified header and its value to the request's header
collection. If a header with this name is already present in the
collection, the value will be added to the comma-separated list of
values associated with the header.
Adds a PipelinePolicy into the pipeline for the duration
of this request.
Assert that Freeze has not been called on this
RequestOptions instance.
Freeze this instance of RequestOptions. After this method
has been called, any attempt to set properties on the instance or call
methods that would change its state will throw InvalidOperationException.
Sets the specified header and its value in the request's header
collection. If a header with this name is already present in the
collection, the header's value will be replaced with the specified value.