aerogear-xamarin-sdk
AeroGear Xamarin SDK
AeroGear.Mobile.Core.Http.IHttpRequest Interface Reference

Interface for requests to HTTP services. More...

Inherited by AeroGear.Mobile.Core.Http.SystemNetHttpRequest.

Public Member Functions

IHttpRequest AddHeader (string key, string value)
 Adds HTTP header to the request More...
 
IHttpRequestToBeExecuted Get (string url)
 Prepares request for GET method on the target. More...
 
IHttpRequestToBeExecuted Post (string url, byte[] body)
 Prepares request for POST method on the target. More...
 
IHttpRequestToBeExecuted Put (string url, byte[] body)
 Prepares request for PUT method on the target. More...
 
IHttpRequestToBeExecuted Delete (string url)
 Prepares request for DELETE method on the target. More...
 
IHttpRequestToBeExecuted Custom (string method, string url, byte[] body)
 Prepares request to be executed with a custom HTTP method More...
 

Detailed Description

Interface for requests to HTTP services.

Member Function Documentation

◆ AddHeader()

IHttpRequest AeroGear.Mobile.Core.Http.IHttpRequest.AddHeader ( string  key,
string  value 
)

Adds HTTP header to the request

Parameters
keyHTTP header name
valueHTTP header value
Returns
request itself

◆ Custom()

IHttpRequestToBeExecuted AeroGear.Mobile.Core.Http.IHttpRequest.Custom ( string  method,
string  url,
byte []  body 
)

Prepares request to be executed with a custom HTTP method

Parameters
methodHTTP method
urlrequest target
bodyrequest body
Returns
request ready for execution

◆ Delete()

IHttpRequestToBeExecuted AeroGear.Mobile.Core.Http.IHttpRequest.Delete ( string  url)

Prepares request for DELETE method on the target.

Parameters
urlrequest target
Returns
request ready for execution

◆ Get()

IHttpRequestToBeExecuted AeroGear.Mobile.Core.Http.IHttpRequest.Get ( string  url)

Prepares request for GET method on the target.

Parameters
urlrequest target
Returns
request ready for execution

◆ Post()

IHttpRequestToBeExecuted AeroGear.Mobile.Core.Http.IHttpRequest.Post ( string  url,
byte []  body 
)

Prepares request for POST method on the target.

Parameters
urlrequest target
bodyrequest body
Returns
request ready for execution

◆ Put()

IHttpRequestToBeExecuted AeroGear.Mobile.Core.Http.IHttpRequest.Put ( string  url,
byte []  body 
)

Prepares request for PUT method on the target.

Parameters
urlrequest target
bodyrequest body
Returns
request ready for execution

The documentation for this interface was generated from the following file: