SkyWay Unity SDK
公式APIリファレンス
|
Represents the event data for the HTTP request events of the HttpServer class. [詳解]
公開メンバ関数 | |
byte[] | ReadFile (string path) |
Reads the specified file from the document folder of the HttpServer class. | |
bool | TryReadFile (string path, out byte[] contents) |
Tries to read the specified file from the document folder of the HttpServer class. | |
プロパティ | |
HttpListenerRequest | Request [get] |
Gets the request data sent from a client. | |
HttpListenerResponse | Response [get] |
Gets the response data to return to the client. | |
IPrincipal | User [get] |
Gets the information for the client. | |
Represents the event data for the HTTP request events of the HttpServer class.
An HTTP request event occurs when the HttpServer instance receives an HTTP request.
You should access the Request property if you would like to get the request data sent from a client.
And you should access the Response property if you would like to get the response data to return to the client.
|
inline |
Reads the specified file from the document folder of the HttpServer class.
null
if the read has failed.
path | A string that specifies a virtual path to find the file from the document folder. |
ArgumentException | path is an empty string. -or- path contains "..". |
ArgumentNullException | path is null . |
|
inline |
Tries to read the specified file from the document folder of the HttpServer class.
true
if the try has succeeded; otherwise, false
. path | A string that specifies a virtual path to find the file from the document folder. |
contents | When this method returns, an array of byte that receives the contents of the file. null if the read has failed. |
ArgumentException | path is an empty string. -or- path contains "..". |
ArgumentNullException | path is null . |
|
get |
Gets the request data sent from a client.
A HttpListenerRequest that provides the methods and properties for the request data.
|
get |
Gets the response data to return to the client.
A HttpListenerResponse that provides the methods and properties for the response data.
|
get |
Gets the information for the client.
A IPrincipal instance that represents identity, authentication scheme, and security roles for the client.
null
if the client is not authenticated.