HttpClientRequestMessage Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
HttpClient based implementation of DataServiceClientRequestMessage.
public class HttpClientRequestMessage : Microsoft.OData.Client.DataServiceClientRequestMessage, IDisposable
type HttpClientRequestMessage = class
inherit DataServiceClientRequestMessage
interface IDisposable
Public Class HttpClientRequestMessage
Inherits DataServiceClientRequestMessage
Implements IDisposable
- Inheritance
- Implements
Constructors
HttpClientRequestMessage(DataServiceClientRequestMessageArgs) |
Properties
ActualMethod |
Gets or the actual method. In post tunneling situations method will be POST instead of the specified verb method. (Inherited from DataServiceClientRequestMessage) |
Credentials |
Gets or set the credentials for this request. |
Headers |
Returns the collection of request headers. |
Method |
Gets or sets the method for this request. |
ReadWriteTimeout |
Obsolete.
HttpClientRequestMessage internally uses HttpClient class to Send HTTP requests and receive responses from a resource identified by the specified URI. HttpClient class does not support read and write timeout. Currently, this property just sets theTimeout value. It is retained for backward compatibility and will be dropped in a future major release. |
SendChunked |
Gets or sets a value that indicates whether to send data in segments. |
Timeout |
Gets or sets the timeout (in seconds) for this request. |
Url |
Gets or sets the request url. |
Methods
Abort() |
Abort the current request. |
BeginGetRequestStream(AsyncCallback, Object) |
Begins an asynchronous request for a System.IO.Stream object to use to write data. |
BeginGetResponse(AsyncCallback, Object) |
Begins an asynchronous request to an Internet resource. |
Dispose() | |
Dispose(Boolean) |
Perform the actual cleanup work. |
EndGetRequestStream(IAsyncResult) |
Ends an asynchronous request for a System.IO.Stream object to use to write data. |
EndGetResponse(IAsyncResult) |
Ends an asynchronous request to an Internet resource. |
GetHeader(String) |
Returns the value of the header with the given name. |
GetResponse() |
Returns a response from an Internet resource. |
GetStream() |
Gets the stream to be used to write the request payload. |
SetHeader(String, String) |
Sets the value of the header with the given name. |