HttpWebRequestMessage Class

Definition

Caution

Migrate from the use of HttpWebRequestMessage to HttpClientRequestMessage

IODataRequestMessage interface implementation.

[System.Obsolete("Migrate from the use of HttpWebRequestMessage to HttpClientRequestMessage")]
public class HttpWebRequestMessage : Microsoft.OData.Client.DataServiceClientRequestMessage
[<System.Obsolete("Migrate from the use of HttpWebRequestMessage to HttpClientRequestMessage")>]
type HttpWebRequestMessage = class
    inherit DataServiceClientRequestMessage
Public Class HttpWebRequestMessage
Inherits DataServiceClientRequestMessage
Inheritance
HttpWebRequestMessage
Attributes

Constructors

HttpWebRequestMessage(DataServiceClientRequestMessageArgs)

Creates a new instance of HttpWebRequestMessage.

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.

HttpWebRequest

Returns the underlying HttpWebRequest

Method

Returns the method for this request.

ReadWriteTimeout

Gets or sets the read and write timeout (in seconds) for this request.

SendChunked

Gets or sets a value that indicates whether to send data in segments to the Internet resource.

Timeout

Gets or sets the timeout (in seconds) for this request.

Url

Returns 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.

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.

Applies to