C# Class PerpetualEngine.HttpClient

Exibir arquivo Open project: perpetual-mobile/PerpetualEngine Class Usage Examples

Public Properties

Property Type Description
Credentials System.Net.NetworkCredential

Public Methods

Method Description
Delete ( string url ) : string
DeleteAsync ( string url ) : Task
Get ( string url ) : string
Get ( string url, string destinationPath ) : void
GetAsync ( string url, string destinationPath ) : Task
GetAsync ( string url ) : Task
Post ( string url, string sourcePath ) : string
PostAsync ( string url, string sourcePath ) : Task

Private Methods

Method Description
GetMultipartFormData ( object>.Dictionary postParameters, string boundary ) : byte[]
MultipartFormDataPost ( string postUrl, object>.Dictionary postParameters ) : HttpWebResponse
PostForm ( string postUrl, string contentType, byte formData ) : HttpWebResponse
Request ( string method, string url ) : string
RequestDownload ( string url, string filePath ) : void
RequestUpload ( string url, string filePath ) : string

Method Details

Delete() public method

public Delete ( string url ) : string
url string
return string

DeleteAsync() public method

public DeleteAsync ( string url ) : Task
url string
return Task

Get() public method

public Get ( string url ) : string
url string
return string

Get() public method

public Get ( string url, string destinationPath ) : void
url string
destinationPath string
return void

GetAsync() public method

public GetAsync ( string url, string destinationPath ) : Task
url string
destinationPath string
return Task

GetAsync() public method

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

Post() public method

public Post ( string url, string sourcePath ) : string
url string
sourcePath string
return string

PostAsync() public method

public PostAsync ( string url, string sourcePath ) : Task
url string
sourcePath string
return Task

Property Details

Credentials public_oe property

public NetworkCredential,System.Net Credentials
return System.Net.NetworkCredential