C# Class BeardedManStudios.Network.HTTP

Afficher le fichier Open project: drakelinglabs/unityarmada

Méthodes publiques

Свойство Type Description
contentType ContentType
requestType RequestType

Méthodes publiques

Méthode 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

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

Method Details

Delete() public méthode

Delete a response to the HTTP
public Delete ( Action callback ) : void
callback Action
Résultat void

Get() public méthode

Get a response from the HTTP
public Get ( Action callback ) : void
callback Action
Résultat void

GetImage() public méthode

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

GetImageResponse() public méthode

public GetImageResponse ( object arg ) : byte[]
arg object
Résultat byte[]

GetImageResponse() public méthode

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

HTTP() public méthode

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

Post() public méthode

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
Résultat void

Post() public méthode

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

Put() public méthode

Put a response to the HTTP
public Put ( Action callback ) : void
callback Action
Résultat void

Property Details

contentType public_oe property

The type of content you are expecting from this url
public ContentType contentType
Résultat ContentType

requestType public_oe property

The type of HTTP request this will be
public RequestType requestType
Résultat RequestType