C# 클래스 RestSharp.Http

HttpWebRequest wrapper (sync methods)
파일 보기 프로젝트 열기: Cratesmith/RestSharp-for-unity3d

공개 메소드들

메소드 설명
AsGet ( string httpMethod ) : HttpResponse

Execute a GET-style request with the specified HTTP Method.

AsGetAsync ( Action action, string httpMethod ) : HttpWebRequest

Execute an async GET-style request with the specified HTTP Method.

AsPost ( string httpMethod ) : HttpResponse

Execute a POST-style request with the specified HTTP Method.

AsPostAsync ( Action action, string httpMethod ) : HttpWebRequest

Execute an async POST-style request with the specified HTTP Method.

Delete ( ) : HttpResponse

Execute a DELETE request

DeleteAsync ( Action action ) : HttpWebRequest
Get ( ) : HttpResponse

Execute a GET request

GetAsync ( Action action ) : HttpWebRequest
Head ( ) : HttpResponse

Execute a HEAD request

HeadAsync ( Action action ) : HttpWebRequest
Options ( ) : HttpResponse

Execute an OPTIONS request

OptionsAsync ( Action action ) : HttpWebRequest
Patch ( ) : HttpResponse

Execute a PATCH request

PatchAsync ( Action action ) : HttpWebRequest
Post ( ) : HttpResponse

Execute a POST request

PostAsync ( Action action ) : HttpWebRequest
Put ( ) : HttpResponse

Execute a PUT request

PutAsync ( Action action ) : HttpWebRequest

비공개 메소드들

메소드 설명
AddAsyncHeaderActions ( ) : void
AddSyncHeaderActions ( ) : void
CalculateContentLength ( ) : long
ConfigureAsyncWebRequest ( string method, Uri url ) : HttpWebRequest
ConfigureWebRequest ( string method, Uri url ) : HttpWebRequest
ExecuteCallback ( HttpResponse response, Action callback ) : void
GetRawResponse ( HttpWebRequest request ) : HttpWebResponse
GetRawResponseAsync ( IAsyncResult result, Action callback ) : void
GetResponse ( HttpWebRequest request ) : HttpResponse
GetStyleMethodInternal ( string method ) : HttpResponse
GetStyleMethodInternalAsync ( string method, Action callback ) : HttpWebRequest
PostPutInternal ( string method ) : HttpResponse
PreparePostData ( HttpWebRequest webRequest ) : void
PutPostInternalAsync ( string method, Action callback ) : HttpWebRequest
RequestStreamCallback ( IAsyncResult result, Action callback ) : void
ResponseCallback ( IAsyncResult result, Action callback ) : void
SetTimeout ( IAsyncResult asyncResult, TimeOutState timeOutState ) : void
TimeoutCallback ( object state, bool timedOut ) : void
WriteRequestBody ( HttpWebRequest webRequest ) : void
WriteRequestBodyAsync ( HttpWebRequest webRequest, Action callback ) : void

메소드 상세

AsGet() 공개 메소드

Execute a GET-style request with the specified HTTP Method.
public AsGet ( string httpMethod ) : HttpResponse
httpMethod string The HTTP method to execute.
리턴 HttpResponse

AsGetAsync() 공개 메소드

Execute an async GET-style request with the specified HTTP Method.
public AsGetAsync ( Action action, string httpMethod ) : HttpWebRequest
action Action
httpMethod string The HTTP method to execute.
리턴 System.Net.HttpWebRequest

AsPost() 공개 메소드

Execute a POST-style request with the specified HTTP Method.
public AsPost ( string httpMethod ) : HttpResponse
httpMethod string The HTTP method to execute.
리턴 HttpResponse

AsPostAsync() 공개 메소드

Execute an async POST-style request with the specified HTTP Method.
public AsPostAsync ( Action action, string httpMethod ) : HttpWebRequest
action Action
httpMethod string The HTTP method to execute.
리턴 System.Net.HttpWebRequest

Delete() 공개 메소드

Execute a DELETE request
public Delete ( ) : HttpResponse
리턴 HttpResponse

DeleteAsync() 공개 메소드

public DeleteAsync ( Action action ) : HttpWebRequest
action Action
리턴 System.Net.HttpWebRequest

Get() 공개 메소드

Execute a GET request
public Get ( ) : HttpResponse
리턴 HttpResponse

GetAsync() 공개 메소드

public GetAsync ( Action action ) : HttpWebRequest
action Action
리턴 System.Net.HttpWebRequest

Head() 공개 메소드

Execute a HEAD request
public Head ( ) : HttpResponse
리턴 HttpResponse

HeadAsync() 공개 메소드

public HeadAsync ( Action action ) : HttpWebRequest
action Action
리턴 System.Net.HttpWebRequest

Options() 공개 메소드

Execute an OPTIONS request
public Options ( ) : HttpResponse
리턴 HttpResponse

OptionsAsync() 공개 메소드

public OptionsAsync ( Action action ) : HttpWebRequest
action Action
리턴 System.Net.HttpWebRequest

Patch() 공개 메소드

Execute a PATCH request
public Patch ( ) : HttpResponse
리턴 HttpResponse

PatchAsync() 공개 메소드

public PatchAsync ( Action action ) : HttpWebRequest
action Action
리턴 System.Net.HttpWebRequest

Post() 공개 메소드

Execute a POST request
public Post ( ) : HttpResponse
리턴 HttpResponse

PostAsync() 공개 메소드

public PostAsync ( Action action ) : HttpWebRequest
action Action
리턴 System.Net.HttpWebRequest

Put() 공개 메소드

Execute a PUT request
public Put ( ) : HttpResponse
리턴 HttpResponse

PutAsync() 공개 메소드

public PutAsync ( Action action ) : HttpWebRequest
action Action
리턴 System.Net.HttpWebRequest