Class RESTApiRules
Assembly: Glitch9.IO.dll
Syntax
public static class RESTApiRules
Methods
|
Edit this page
View Source
HasTextualContentType(UnityWebRequest)
Declaration
public static bool HasTextualContentType(this UnityWebRequest uwr)
Parameters
| Type |
Name |
Description |
| UnityWebRequest |
uwr |
|
Returns
|
Edit this page
View Source
IsHttpSuccessCode(long)
Declaration
public static bool IsHttpSuccessCode(long code)
Parameters
| Type |
Name |
Description |
| long |
code |
|
Returns
|
Edit this page
View Source
IsTextualContentType(string)
Declaration
public static bool IsTextualContentType(string contentType)
Parameters
| Type |
Name |
Description |
| string |
contentType |
|
Returns
|
Edit this page
View Source
IsTransientStatusCode(int)
Declaration
public static bool IsTransientStatusCode(int status)
Parameters
| Type |
Name |
Description |
| int |
status |
|
Returns
|
Edit this page
View Source
ResolveDataTransferMode(MimeType)
Declaration
public static DataTransferMode ResolveDataTransferMode(MimeType responseContentType)
Parameters
| Type |
Name |
Description |
| MimeType |
responseContentType |
|
Returns
|
Edit this page
View Source
SelectDownloadHandlerFile(string, RESTRequest, RESTClient)
Declaration
public static DownloadHandler SelectDownloadHandlerFile(string downloadPath, RESTRequest request, RESTClient client)
Parameters
Returns
| Type |
Description |
| DownloadHandler |
|
|
Edit this page
View Source
Declaration
public static bool ShouldIncludeContentTypeHeader(MimeType contentType)
Parameters
| Type |
Name |
Description |
| MimeType |
contentType |
|
Returns