C# Class ApexLumia.HTTPRequests

Datei anzeigen Open project: ApexHAB/apex-lumia Class Usage Examples

Public Methods

Method Description
getRequestAsync ( string url ) : Task

Async: Make an HTTP GET request to a URL (with no extra parameters)

postRequestAsync ( string url, string postData, string authorization = "", bool Expect100Continue = true ) : Task
putRequestAsync ( string url, string putData ) : Task

Async: Make an HTTP PUT request to a URL with data

Method Details

getRequestAsync() public static method

Async: Make an HTTP GET request to a URL (with no extra parameters)
public static getRequestAsync ( string url ) : Task
url string The URL you would like to send a request to.
return Task

postRequestAsync() public static method

public static postRequestAsync ( string url, string postData, string authorization = "", bool Expect100Continue = true ) : Task
url string
postData string
authorization string
Expect100Continue bool
return Task

putRequestAsync() public static method

Async: Make an HTTP PUT request to a URL with data
public static putRequestAsync ( string url, string putData ) : Task
url string The URL you would like to send a request to.
putData string The data you would like to send to the URL (e.g. JSON)
return Task