C# Class Universe.Framework.Utilities.WebUtils

Afficher le fichier Open project: Virtual-Universe/Virtual-Universe

Méthodes publiques

Méthode Description
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[]

Method Details

DeleteFromService() public static méthode

PUT JSON-encoded data to a web service that returns LLSD or JSON data
public static DeleteFromService ( string url ) : string
url string
Résultat string

DeleteFromService() public static méthode

DELETE JSON-encoded data to a web service
public static DeleteFromService ( string url ) : void
url string
Résultat void

GetFromService() public static méthode

GET JSON-encoded data to a web service that returns LLSD or JSON data
public static GetFromService ( string url ) : string
url string
Résultat string

GetOSDMap() public static méthode

public static GetOSDMap ( string data, bool doLogMessages ) : OSDMap
data string
doLogMessages bool
Résultat OSDMap

GetPreferredImageTypes() public static méthode

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
Résultat string[]

PostToService() public static méthode

public static PostToService ( string url, byte data ) : byte[]
url string
data byte
Résultat byte[]

PostToService() public static méthode

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

PutToService() public static méthode

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

ServiceOSDRequest() public static méthode

public static ServiceOSDRequest ( string url, byte buffer, string method, int timeout ) : Task
url string
buffer byte
method string
timeout int
Résultat Task

ServiceOSDRequest() public static méthode

public static ServiceOSDRequest ( string url, byte buffer, string method, int timeout ) : byte[]
url string
buffer byte
method string
timeout int
Résultat byte[]