C# Класс Universe.Framework.Utilities.WebUtils

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

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

Метод Описание
DeleteFromService ( string url ) : string

PUT JSON-encoded data to a web service that returns LLSD or JSON data

DeleteFromService ( string url ) : void

DELETE JSON-encoded data to a web service

GetFromService ( string url ) : string

GET JSON-encoded data to a web service that returns LLSD or JSON data

GetOSDMap ( string data, bool doLogMessages ) : OSDMap
GetPreferredImageTypes ( string accept ) : string[]

Takes the value of an Accept header and returns the preferred types ordered by q value (if it exists). Example input: image/jpg;q=0.7, image/png;q=0.8, image/jp2 Example output: ["jp2", "png", "jpg"] NOTE: This doesn't handle the semantics of *'s...

PostToService ( string url, byte data ) : byte[]
PostToService ( string url, OSDMap data ) : string

POST URL-encoded form data to a web service that returns LLSD or JSON data

PutToService ( string url, OSDMap data ) : string

PUT JSON-encoded data to a web service that returns LLSD or JSON data

ServiceOSDRequest ( string url, byte buffer, string method, int timeout ) : Task
ServiceOSDRequest ( string url, byte buffer, string method, int timeout ) : byte[]

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

DeleteFromService() публичный статический Метод

PUT JSON-encoded data to a web service that returns LLSD or JSON data
public static DeleteFromService ( string url ) : string
url string
Результат string

DeleteFromService() публичный статический Метод

DELETE JSON-encoded data to a web service
public static DeleteFromService ( string url ) : void
url string
Результат void

GetFromService() публичный статический Метод

GET JSON-encoded data to a web service that returns LLSD or JSON data
public static GetFromService ( string url ) : string
url string
Результат string

GetOSDMap() публичный статический Метод

public static GetOSDMap ( string data, bool doLogMessages ) : OSDMap
data string
doLogMessages bool
Результат OSDMap

GetPreferredImageTypes() публичный статический Метод

Takes the value of an Accept header and returns the preferred types ordered by q value (if it exists). Example input: image/jpg;q=0.7, image/png;q=0.8, image/jp2 Example output: ["jp2", "png", "jpg"] NOTE: This doesn't handle the semantics of *'s...
public static GetPreferredImageTypes ( string accept ) : string[]
accept string
Результат string[]

PostToService() публичный статический Метод

public static PostToService ( string url, byte data ) : byte[]
url string
data byte
Результат byte[]

PostToService() публичный статический Метод

POST URL-encoded form data to a web service that returns LLSD or JSON data
public static PostToService ( string url, OSDMap data ) : string
url string
data OSDMap
Результат string

PutToService() публичный статический Метод

PUT JSON-encoded data to a web service that returns LLSD or JSON data
public static PutToService ( string url, OSDMap data ) : string
url string
data OSDMap
Результат string

ServiceOSDRequest() публичный статический Метод

public static ServiceOSDRequest ( string url, byte buffer, string method, int timeout ) : Task
url string
buffer byte
method string
timeout int
Результат Task

ServiceOSDRequest() публичный статический Метод

public static ServiceOSDRequest ( string url, byte buffer, string method, int timeout ) : byte[]
url string
buffer byte
method string
timeout int
Результат byte[]