C# 클래스 Universe.Framework.Utilities.WebUtils

파일 보기 프로젝트 열기: Virtual-Universe/Virtual-Universe

공개 메소드들

메소드 설명
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[]