C# Class BeardedManStudios.Network.HTTP

Datei anzeigen Open project: drakelinglabs/unityarmada

Public Properties

Property Type Description
contentType ContentType
requestType RequestType

Public Methods

Method Description
Delete ( Action callback ) : void

Delete a response to the HTTP

Get ( Action callback ) : void

Get a response from the HTTP

GetImage ( Action callback ) : void

Get an image response to be used in the game

GetImageResponse ( object arg ) : byte[]
GetImageResponse ( byte parameters ) : void

Gets an image response from HTTP request as a byte[]

HTTP ( string url, string stringHeaders = null ) : System

Constructor for a passed in URL

Post ( Action callback, string>.Dictionary parameters ) : void

Post a message to the URL with parameters

Post ( Action callback, string postString ) : void

Post a message to the URL

Put ( Action callback ) : void

Put a response to the HTTP

Private Methods

Method Description
GetWebResponse ( byte parameters ) : object
GetWebResponse ( byte parameters, Action callback ) : void
Send ( Action callback, byte argument = null ) : void

Method Details

Delete() public method

Delete a response to the HTTP
public Delete ( Action callback ) : void
callback Action
return void

Get() public method

Get a response from the HTTP
public Get ( Action callback ) : void
callback Action
return void

GetImage() public method

Get an image response to be used in the game
public GetImage ( Action callback ) : void
callback Action
return void

GetImageResponse() public method

public GetImageResponse ( object arg ) : byte[]
arg object
return byte[]

GetImageResponse() public method

Gets an image response from HTTP request as a byte[]
public GetImageResponse ( byte parameters ) : void
parameters byte
return void

HTTP() public method

Constructor for a passed in URL
public HTTP ( string url, string stringHeaders = null ) : System
url string URL to be pulling data from
stringHeaders string
return System

Post() public method

Post a message to the URL with parameters
public Post ( Action callback, string>.Dictionary parameters ) : void
callback Action
parameters string>.Dictionary Message to post with parameters
return void

Post() public method

Post a message to the URL
public Post ( Action callback, string postString ) : void
callback Action
postString string Message to post
return void

Put() public method

Put a response to the HTTP
public Put ( Action callback ) : void
callback Action
return void

Property Details

contentType public_oe property

The type of content you are expecting from this url
public ContentType contentType
return ContentType

requestType public_oe property

The type of HTTP request this will be
public RequestType requestType
return RequestType