C# Класс BeardedManStudios.Network.HTTP

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
contentType ContentType
requestType RequestType

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
GetWebResponse ( byte parameters ) : object
GetWebResponse ( byte parameters, Action callback ) : void
Send ( Action callback, byte argument = null ) : void

Описание методов

Delete() публичный Метод

Delete a response to the HTTP
public Delete ( Action callback ) : void
callback Action
Результат void

Get() публичный Метод

Get a response from the HTTP
public Get ( Action callback ) : void
callback Action
Результат void

GetImage() публичный Метод

Get an image response to be used in the game
public GetImage ( Action callback ) : void
callback Action
Результат void

GetImageResponse() публичный Метод

public GetImageResponse ( object arg ) : byte[]
arg object
Результат byte[]

GetImageResponse() публичный Метод

Gets an image response from HTTP request as a byte[]
public GetImageResponse ( byte parameters ) : void
parameters byte
Результат void

HTTP() публичный Метод

Constructor for a passed in URL
public HTTP ( string url, string stringHeaders = null ) : System
url string URL to be pulling data from
stringHeaders string
Результат System

Post() публичный Метод

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
Результат void

Post() публичный Метод

Post a message to the URL
public Post ( Action callback, string postString ) : void
callback Action
postString string Message to post
Результат void

Put() публичный Метод

Put a response to the HTTP
public Put ( Action callback ) : void
callback Action
Результат void

Описание свойств

contentType публичное свойство

The type of content you are expecting from this url
public ContentType contentType
Результат ContentType

requestType публичное свойство

The type of HTTP request this will be
public RequestType requestType
Результат RequestType