C# Class SumoNinjaMonkey.Services.Networking.Http

ファイルを表示 Open project: liquidboy/X

Public Methods

Method Description
AbortAllRequests ( ) : void
AbortRequests ( bool>.Func abortPredicate ) : void
Get ( HttpGetRequest req, Action action ) : HttpResponse
Get ( string uri, Action action ) : HttpResponse
GetAsync ( HttpGetRequest request ) : Task
GetAsync ( string url ) : Task
Post ( HttpPostRequest req, Action action ) : HttpResponse
Post ( string uri, Action action ) : HttpResponse
PostAsync ( HttpPostRequest request ) : Task
PostAsync ( string url ) : Task

Private Methods

Method Description
CreateRequest ( HttpGetRequest req ) : HttpWebRequest
GetQueryString ( string>.Dictionary query ) : string
ProcessResponse ( IAsyncResult asyncResult, WebRequest request, HttpResponse resp, Action action ) : void
WritePostData ( Stream stream, HttpPostRequest request ) : void
WritePostData ( Stream stream, string boundary, HttpPostRequest request ) : void

Method Details

AbortAllRequests() public static method

public static AbortAllRequests ( ) : void
return void

AbortRequests() public static method

public static AbortRequests ( bool>.Func abortPredicate ) : void
abortPredicate bool>.Func
return void

Get() public static method

public static Get ( HttpGetRequest req, Action action ) : HttpResponse
req HttpGetRequest
action Action
return HttpResponse

Get() public static method

public static Get ( string uri, Action action ) : HttpResponse
uri string
action Action
return HttpResponse

GetAsync() public static method

public static GetAsync ( HttpGetRequest request ) : Task
request HttpGetRequest
return Task

GetAsync() public static method

public static GetAsync ( string url ) : Task
url string
return Task

Post() public static method

public static Post ( HttpPostRequest req, Action action ) : HttpResponse
req HttpPostRequest
action Action
return HttpResponse

Post() public static method

public static Post ( string uri, Action action ) : HttpResponse
uri string
action Action
return HttpResponse

PostAsync() public static method

public static PostAsync ( HttpPostRequest request ) : Task
request HttpPostRequest
return Task

PostAsync() public static method

public static PostAsync ( string url ) : Task
url string
return Task