C# Class Microsoft.Http.HttpClient

Inheritance: IDisposable
Afficher le fichier Open project: o2platform/O2.Platform.Projects Class Usage Examples

Méthodes publiques

Méthode Description
BeginSend ( HttpRequestMessage request, AsyncCallback callback, object state ) : IAsyncResult
Dispose ( ) : void
EndSend ( IAsyncResult result ) : HttpResponseMessage
HttpClient ( ) : System
HttpClient ( Uri baseAddress ) : System
HttpClient ( string baseAddress ) : System
Send ( HttpMethod method ) : HttpResponseMessage
Send ( HttpMethod method, Uri uri ) : HttpResponseMessage
Send ( HttpMethod method, Uri uri, HttpContent content ) : HttpResponseMessage
Send ( HttpMethod method, Uri uri, Microsoft.Http.Headers.RequestHeaders headers ) : HttpResponseMessage
Send ( HttpMethod method, Uri uri, Microsoft.Http.Headers.RequestHeaders headers, HttpContent content ) : HttpResponseMessage
Send ( HttpMethod method, string uri ) : HttpResponseMessage
Send ( HttpMethod method, string uri, HttpContent content ) : HttpResponseMessage
Send ( HttpMethod method, string uri, Microsoft.Http.Headers.RequestHeaders headers ) : HttpResponseMessage
Send ( HttpMethod method, string uri, Microsoft.Http.Headers.RequestHeaders headers, HttpContent content ) : HttpResponseMessage
Send ( HttpRequestMessage request ) : HttpResponseMessage
SendAsync ( HttpRequestMessage request ) : void
SendAsync ( HttpRequestMessage request, object userState ) : void
SendAsyncCancel ( object userState ) : void

Méthodes protégées

Méthode Description
CreateTransportStage ( ) : Microsoft.Http.HttpStage
Dispose ( bool disposing ) : void
ThrowIfDisposed ( ) : void

Private Methods

Méthode Description
BeginSendCore ( HttpRequestMessage request, AsyncCallback callback, object state ) : HttpStageProcessingAsyncResult
GetPipeline ( ) : ReadOnlyCollection
OperationCompleted ( object o ) : void
PrepareRequest ( HttpRequestMessage &request ) : void
SendAsyncCore ( HttpRequestMessage request, object userState ) : void
SendCompletedCore ( IAsyncResult a ) : void

Method Details

BeginSend() public méthode

public BeginSend ( HttpRequestMessage request, AsyncCallback callback, object state ) : IAsyncResult
request HttpRequestMessage
callback AsyncCallback
state object
Résultat IAsyncResult

CreateTransportStage() protected méthode

protected CreateTransportStage ( ) : Microsoft.Http.HttpStage
Résultat Microsoft.Http.HttpStage

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

EndSend() public méthode

public EndSend ( IAsyncResult result ) : HttpResponseMessage
result IAsyncResult
Résultat HttpResponseMessage

HttpClient() public méthode

public HttpClient ( ) : System
Résultat System

HttpClient() public méthode

public HttpClient ( Uri baseAddress ) : System
baseAddress System.Uri
Résultat System

HttpClient() public méthode

public HttpClient ( string baseAddress ) : System
baseAddress string
Résultat System

Send() public méthode

public Send ( HttpMethod method ) : HttpResponseMessage
method HttpMethod
Résultat HttpResponseMessage

Send() public méthode

public Send ( HttpMethod method, Uri uri ) : HttpResponseMessage
method HttpMethod
uri System.Uri
Résultat HttpResponseMessage

Send() public méthode

public Send ( HttpMethod method, Uri uri, HttpContent content ) : HttpResponseMessage
method HttpMethod
uri System.Uri
content HttpContent
Résultat HttpResponseMessage

Send() public méthode

public Send ( HttpMethod method, Uri uri, Microsoft.Http.Headers.RequestHeaders headers ) : HttpResponseMessage
method HttpMethod
uri System.Uri
headers Microsoft.Http.Headers.RequestHeaders
Résultat HttpResponseMessage

Send() public méthode

public Send ( HttpMethod method, Uri uri, Microsoft.Http.Headers.RequestHeaders headers, HttpContent content ) : HttpResponseMessage
method HttpMethod
uri System.Uri
headers Microsoft.Http.Headers.RequestHeaders
content HttpContent
Résultat HttpResponseMessage

Send() public méthode

public Send ( HttpMethod method, string uri ) : HttpResponseMessage
method HttpMethod
uri string
Résultat HttpResponseMessage

Send() public méthode

public Send ( HttpMethod method, string uri, HttpContent content ) : HttpResponseMessage
method HttpMethod
uri string
content HttpContent
Résultat HttpResponseMessage

Send() public méthode

public Send ( HttpMethod method, string uri, Microsoft.Http.Headers.RequestHeaders headers ) : HttpResponseMessage
method HttpMethod
uri string
headers Microsoft.Http.Headers.RequestHeaders
Résultat HttpResponseMessage

Send() public méthode

public Send ( HttpMethod method, string uri, Microsoft.Http.Headers.RequestHeaders headers, HttpContent content ) : HttpResponseMessage
method HttpMethod
uri string
headers Microsoft.Http.Headers.RequestHeaders
content HttpContent
Résultat HttpResponseMessage

Send() public méthode

public Send ( HttpRequestMessage request ) : HttpResponseMessage
request HttpRequestMessage
Résultat HttpResponseMessage

SendAsync() public méthode

public SendAsync ( HttpRequestMessage request ) : void
request HttpRequestMessage
Résultat void

SendAsync() public méthode

public SendAsync ( HttpRequestMessage request, object userState ) : void
request HttpRequestMessage
userState object
Résultat void

SendAsyncCancel() public méthode

public SendAsyncCancel ( object userState ) : void
userState object
Résultat void

ThrowIfDisposed() protected méthode

protected ThrowIfDisposed ( ) : void
Résultat void