C# Class UWP10template.Services.HttpService

Show file Open project: mapaux/UWP10template

Public Methods

Method Description
GetAsync ( string requestUriString ) : Task

Makes a GET request

HttpService ( ) : System.Collections.Generic

Initializes a new instance of the HttpService class

PostAsync ( string requestUriString ) : Task

Makes a POST request

PostAsync ( string requestUriString, string>.List content ) : Task

Makes a POST request

PostAsync ( string requestUriString, object data ) : Task

Makes a post request sending JSON content.

PostAsync ( string requestUriString, string contentType, byte content ) : Task

Makes a POST request

Method Details

GetAsync() public method

Makes a GET request
public GetAsync ( string requestUriString ) : Task
requestUriString string The request Uri
return Task

HttpService() public method

Initializes a new instance of the HttpService class
public HttpService ( ) : System.Collections.Generic
return System.Collections.Generic

PostAsync() public method

Makes a POST request
public PostAsync ( string requestUriString ) : Task
requestUriString string The request Uri
return Task

PostAsync() public method

Makes a POST request
public PostAsync ( string requestUriString, string>.List content ) : Task
requestUriString string The request Uri
content string>.List The content to send with the request
return Task

PostAsync() public method

Makes a post request sending JSON content.
public PostAsync ( string requestUriString, object data ) : Task
requestUriString string The request Uri
data object The content to POST
return Task

PostAsync() public method

Makes a POST request
public PostAsync ( string requestUriString, string contentType, byte content ) : Task
requestUriString string The request Uri
contentType string The type of content to send with the request
content byte The content to send with the request
return Task