The main class for all incoming request data. This is a wrapper for the HttpListenerRequest class. Contains one static Factory function to create requests from httplistenercontexts. Cannot be instantiated
More...
The main class for all incoming request data. This is a wrapper for the HttpListenerRequest class. Contains one static Factory function to create requests from httplistenercontexts. Cannot be instantiated
HttpListenerContext context = await listener.GetContextAsync();
The main class for all incoming request data. This is a wrapper for the HttpListenerRequest class....
static SimpleRestRequest FromHttpListenerContext(HttpListenerContext listenerContext, JsonSerializerOptions jsonOptions, ISimpleRestEndpointFormatter? endpointFormatter=null)
Factory function creating a Request object with all http request info stored on it.
Definition at line 25 of file SimpleRestRequest.cs.
◆ FromHttpListenerContext()
Factory function creating a Request object with all http request info stored on it.
- Parameters
-
| listenerContext | The HttpListenerContext instance to generate the request from |
| endpointFormatter | An optional injectable Endpoint formatter class that can apply transformations to the url |
- Returns
- The SimplerRestRequest generated from the listenerContext
Definition at line 55 of file SimpleRestRequest.cs.
◆ Body
◆ ContentLength
| long SimpleRest.Api.SimpleRestRequest.ContentLength |
|
get |
◆ ContentType
| string? SimpleRest.Api.SimpleRestRequest.ContentType |
|
get |
◆ Endpoint
| string SimpleRest.Api.SimpleRestRequest.Endpoint = "" |
|
get |
◆ Headers
| WebHeaderCollection SimpleRest.Api.SimpleRestRequest.Headers = new WebHeaderCollection() |
|
get |
◆ Method
◆ Params
| Dictionary<string, object?> SimpleRest.Api.SimpleRestRequest.Params = new Dictionary<string, object?>() |
|
getset |
◆ Path
| object? [] SimpleRest.Api.SimpleRestRequest.Path |
|
get |
◆ Query
| Dictionary<string, object?> SimpleRest.Api.SimpleRestRequest.Query = new Dictionary<string, object?>() |
|
get |
◆ this[string key]
| object? SimpleRest.Api.SimpleRestRequest.this[string key] |
|
get |
- Parameters
-
| key | The url parameter from the UriTemplate |
- Returns
- The URI param from the request if it exists
Definition at line 44 of file SimpleRestRequest.cs.
◆ UserAgent
| string? SimpleRest.Api.SimpleRestRequest.UserAgent |
|
get |
The documentation for this class was generated from the following file: