Megosztás a következőn keresztül:


Request Class

Definition

Represents an HTTP request. Use CreateMessage() or CreateRequest() to create an instance.

public abstract class Request : IDisposable
type Request = class
    interface IDisposable
Public MustInherit Class Request
Implements IDisposable
Inheritance
Request
Implements

Constructors

Request()

Properties

ClientRequestId

Gets or sets the client request id that was sent to the server as x-ms-client-request-id headers.

Content

Gets or sets the request content.

Headers

Gets the response HTTP headers.

Method

Gets or sets the request HTTP method.

Uri

Gets or sets and instance of RequestUriBuilder used to create the Uri.

Methods

AddHeader(String, String)

Adds a header value to the header collection.

ContainsHeader(String)

Returns true if the header is stored in the collection.

Dispose()

Frees resources held by this Response instance.

EnumerateHeaders()

Returns an iterator enumerating HttpHeader in the request.

RemoveHeader(String)

Removes the header from the collection.

SetHeader(String, String)

Sets a header value the header collection.

TryGetHeader(String, String)

Returns header value if the header is stored in the collection. If the header has multiple values they are going to be joined with a comma.

TryGetHeaderValues(String, IEnumerable<String>)

Returns header values if the header is stored in the collection.

Applies to