C# Class Qiniu.Http.HttpManager

instance of this class can be sahred
Mostra file Open project: qiniu/csharp-sdk Class Usage Examples

Public Properties

Property Type Description
COPY_BYTES_BUFFER int
FORM_BOUNDARY_TAG string
FORM_MIME_JSON string
FORM_MIME_OCTECT string
FORM_MIME_URLENCODED string

Public Methods

Method Description
get ( string pUrl, string>.Dictionary pHeaders, CompletionHandler pCompletionHandler ) : void

get info from remote server

getRaw ( string pUrl, RecvDataHandler pRecvDataHandler ) : void
postData ( string pUrl, string>.Dictionary pHeaders, byte pPostData, int offset, int count, string contentType, CompletionHandler pCompletionHandler ) : void

post binary data to remote server

postData ( string pUrl, string>.Dictionary pHeaders, byte pPostData, string contentType, CompletionHandler pCompletionHandler ) : void

post the binary data to the remote server

postForm ( string pUrl, string>.Dictionary pHeaders, string[]>.Dictionary pPostParams, CompletionHandler pCompletionHandler ) : void

post the url encoded form to remote server

postFormRaw ( string pUrl, string>.Dictionary pHeaders, RecvDataHandler pRecvDataHandler ) : void

post data from raw

postMultipartDataForm ( string pUrl, string>.Dictionary pHeaders, string>.Dictionary pPostParams, HttpFormFile pFormFile, ProgressHandler pProgressHandler, CompletionHandler pCompletionHandler ) : void

post multi-part data form to remote server used to upload file

postMultipartDataRaw ( string pUrl, string>.Dictionary pHeaders, HttpFormFile pFormFile, ProgressHandler pProgressHandler, RecvDataHandler pRecvDataHandler ) : void

post multi-part data form to remote server used to upload file

Private Methods

Method Description
createFormDataBoundary ( ) : string
createRandomFilename ( ) : string
getUserAgent ( ) : string
handleErrorWebResponse ( HttpWebResponse pWebResp, CompletionHandler pCompletionHandler, Exception pExp ) : void
handleWebResponse ( HttpWebResponse pWebResp, CompletionHandler pCompletionHandler ) : void
handleWebResponse ( HttpWebResponse pWebResp, RecvDataHandler pRecvDataHandler ) : void
writeHttpRequestBody ( Stream fromStream, Stream toStream ) : void

Method Details

get() public method

get info from remote server
public get ( string pUrl, string>.Dictionary pHeaders, CompletionHandler pCompletionHandler ) : void
pUrl string
pHeaders string>.Dictionary
pCompletionHandler CompletionHandler
return void

getRaw() public method

public getRaw ( string pUrl, RecvDataHandler pRecvDataHandler ) : void
pUrl string
pRecvDataHandler RecvDataHandler
return void

postData() public method

post binary data to remote server
public postData ( string pUrl, string>.Dictionary pHeaders, byte pPostData, int offset, int count, string contentType, CompletionHandler pCompletionHandler ) : void
pUrl string
pHeaders string>.Dictionary
pPostData byte
offset int
count int
contentType string
pCompletionHandler CompletionHandler
return void

postData() public method

post the binary data to the remote server
public postData ( string pUrl, string>.Dictionary pHeaders, byte pPostData, string contentType, CompletionHandler pCompletionHandler ) : void
pUrl string
pHeaders string>.Dictionary
pPostData byte
contentType string
pCompletionHandler CompletionHandler
return void

postForm() public method

post the url encoded form to remote server
public postForm ( string pUrl, string>.Dictionary pHeaders, string[]>.Dictionary pPostParams, CompletionHandler pCompletionHandler ) : void
pUrl string
pHeaders string>.Dictionary
pPostParams string[]>.Dictionary
pCompletionHandler CompletionHandler
return void

postFormRaw() public method

post data from raw
public postFormRaw ( string pUrl, string>.Dictionary pHeaders, RecvDataHandler pRecvDataHandler ) : void
pUrl string
pHeaders string>.Dictionary
pRecvDataHandler RecvDataHandler
return void

postMultipartDataForm() public method

post multi-part data form to remote server used to upload file
public postMultipartDataForm ( string pUrl, string>.Dictionary pHeaders, string>.Dictionary pPostParams, HttpFormFile pFormFile, ProgressHandler pProgressHandler, CompletionHandler pCompletionHandler ) : void
pUrl string
pHeaders string>.Dictionary
pPostParams string>.Dictionary
pFormFile HttpFormFile
pProgressHandler ProgressHandler
pCompletionHandler CompletionHandler
return void

postMultipartDataRaw() public method

post multi-part data form to remote server used to upload file
public postMultipartDataRaw ( string pUrl, string>.Dictionary pHeaders, HttpFormFile pFormFile, ProgressHandler pProgressHandler, RecvDataHandler pRecvDataHandler ) : void
pUrl string
pHeaders string>.Dictionary
pFormFile HttpFormFile
pProgressHandler ProgressHandler
pRecvDataHandler RecvDataHandler
return void

Property Details

COPY_BYTES_BUFFER public_oe static_oe property

public static int COPY_BYTES_BUFFER
return int

FORM_BOUNDARY_TAG public_oe static_oe property

public static string FORM_BOUNDARY_TAG
return string

FORM_MIME_JSON public_oe static_oe property

public static string FORM_MIME_JSON
return string

FORM_MIME_OCTECT public_oe static_oe property

public static string FORM_MIME_OCTECT
return string

FORM_MIME_URLENCODED public_oe static_oe property

public static string FORM_MIME_URLENCODED
return string