C# Class Qiniu.Http.HttpManager

instance of this class can be sahred
Afficher le fichier Open project: qiniu/csharp-sdk Class Usage Examples

Méthodes publiques

Свойство Type Description
COPY_BYTES_BUFFER int
FORM_BOUNDARY_TAG string
FORM_MIME_JSON string
FORM_MIME_OCTECT string
FORM_MIME_URLENCODED string

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

getRaw() public méthode

public getRaw ( string pUrl, RecvDataHandler pRecvDataHandler ) : void
pUrl string
pRecvDataHandler RecvDataHandler
Résultat void

postData() public méthode

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
Résultat void

postData() public méthode

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
Résultat void

postForm() public méthode

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
Résultat void

postFormRaw() public méthode

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

postMultipartDataForm() public méthode

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
Résultat void

postMultipartDataRaw() public méthode

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
Résultat void

Property Details

COPY_BYTES_BUFFER public_oe static_oe property

public static int COPY_BYTES_BUFFER
Résultat int

FORM_BOUNDARY_TAG public_oe static_oe property

public static string FORM_BOUNDARY_TAG
Résultat string

FORM_MIME_JSON public_oe static_oe property

public static string FORM_MIME_JSON
Résultat string

FORM_MIME_OCTECT public_oe static_oe property

public static string FORM_MIME_OCTECT
Résultat string

FORM_MIME_URLENCODED public_oe static_oe property

public static string FORM_MIME_URLENCODED
Résultat string