C# Class DynamicRest.HTTPInterfaces.HttpWebClientWrappers.HTTPClientRequestWrapper

Inheritance: IHttpRequest
Mostra file Open project: Huddle/dynamicrest

Public Methods

Method Description
AddCredentials ( ICredentials credentials ) : void
AddHeaders ( WebHeaderCollection headers ) : void
AddRequestBody ( string contentType, string content ) : void
BeginGetResponse ( Action action, object asyncRequest ) : void
EndGetResponse ( object asyncRequest ) : IHttpResponse
GetResponse ( ) : IHttpResponse
HTTPClientRequestWrapper ( HttpClient client ) : System

Method Details

AddCredentials() public method

public AddCredentials ( ICredentials credentials ) : void
credentials ICredentials
return void

AddHeaders() public method

public AddHeaders ( WebHeaderCollection headers ) : void
headers System.Net.WebHeaderCollection
return void

AddRequestBody() public method

public AddRequestBody ( string contentType, string content ) : void
contentType string
content string
return void

BeginGetResponse() public method

public BeginGetResponse ( Action action, object asyncRequest ) : void
action Action
asyncRequest object
return void

EndGetResponse() public method

public EndGetResponse ( object asyncRequest ) : IHttpResponse
asyncRequest object
return IHttpResponse

GetResponse() public method

public GetResponse ( ) : IHttpResponse
return IHttpResponse

HTTPClientRequestWrapper() public method

public HTTPClientRequestWrapper ( HttpClient client ) : System
client System.Net.Http.HttpClient
return System