Click or drag to resize

HttpClientRequest Properties

The HttpClientRequest type exposes the following members.

Properties
 NameDescription
Protected propertyClient Gets a flag indicating whether this class is used in a client application. The value of this class is always true.
(Overrides HttpRequestResponseClient)
Public propertyCloseStream When ContentSource is set to ContentStream (and a ContentStream is assigned), this property determines if the stream should be closed automatically after sending it to the connection (true) or not (false).
(Inherited from HttpOutgoingRequestResponse)
Public propertyContentBytes Assigns a byte array to send back as the HTTP body to this property.
(Inherited from HttpOutgoingRequestResponse)
Public propertyContentSource Defines which property (ContentBytes, ContentStream or ContentString) will be used to send the body of the response. Assigning any of these three properties will automatically set the ContentSource property so that the content will always be sent from the appropriate source.
(Inherited from HttpOutgoingRequestResponse)
Public propertyContentStream Assigns a stream to send back as HTTP body to this property. When assigned (and ContentSource is set to ContentStream), you can use the CloseStream property to determine if the stream should be closed automatically after sending it to the connection (true) or not (false).
(Inherited from HttpOutgoingRequestResponse)
Public propertyContentString Assigns a string to send back as HTTP body to this property.
(Inherited from HttpOutgoingRequestResponse)
Public propertyEncoding Determines the Encoding for the HTTP Request Response
(Inherited from HttpRequestResponse)
Protected propertyHasOnTransferProgress Determines whether the current HTTPRequest Response has an OnTransferProgress event handler.
(Inherited from HttpRequestResponse)
Public propertyHeader Get or set the HTTP Response Header
(Inherited from HttpRequestResponse)
Public propertyIsCompleted Gets a value that indicates whether the asynchronous operation completed.
(Inherited from HttpRequestResponse)
Public propertyKeepAlive Determines the keep alive status of the HTTP Outgoing Request Response.
(Inherited from HttpOutgoingRequestResponse)
Public propertyRequestType Gets or sets the type of the HTTP request. Possible values are: RequestType.Get RequestType.Post RequestType.Put RequestType.Delete RequestType.Head RequestType.Patch The default value of this class is RequestType.Get.
Protected propertyServer Gets a flag indicating whether this class is used in a server application. The value of this class is always false.
(Overrides HttpRequestResponseServer)
Public propertyThisClient Gets the Client that is host to this Async request
(Inherited from HttpRequestResponse)
Public propertyUrl Gets or sets the target URL for the HTTP request.
Top
See Also