C# Class Restful.Web.Client.Client.RawClient

Inheritance: IRawClient
Datei anzeigen Open project: benjaminkeeping/Restful.Web.Client

Public Methods

Method Description
MakeWebRequest ( string url, string method ) : void
MakeWebRequest ( string url, string method, string body ) : void
MakeWebRequestWithResult ( string url, string method ) : string
MakeWebRequestWithResult ( string url, string method, string body ) : string
RawClient ( IHeaderAppender headerAppender, string contentType ) : System

Private Methods

Method Description
AddRequestBody ( string body, WebRequest request ) : void
BuildRequest ( string url, string method ) : HttpWebRequest
ExtractWebResponseFromException ( string url, Exception exception ) : Exception
InitiateRequest ( WebRequest request ) : WebResponse
ParseResponseAsString ( WebResponse response ) : string
TryWebRequest ( string url, string method, WebResponse>.Func makeWebRequest ) : string
TryWebRequest ( string url, string method, Action webRequest ) : void

Method Details

MakeWebRequest() public method

public MakeWebRequest ( string url, string method ) : void
url string
method string
return void

MakeWebRequest() public method

public MakeWebRequest ( string url, string method, string body ) : void
url string
method string
body string
return void

MakeWebRequestWithResult() public method

public MakeWebRequestWithResult ( string url, string method ) : string
url string
method string
return string

MakeWebRequestWithResult() public method

public MakeWebRequestWithResult ( string url, string method, string body ) : string
url string
method string
body string
return string

RawClient() public method

public RawClient ( IHeaderAppender headerAppender, string contentType ) : System
headerAppender IHeaderAppender
contentType string
return System