Authlete
|
Utility to generate HttpResponseMessage
instances.
More...
Static Public Member Functions | |
static HttpResponseMessage | OkJson (string content) |
Create a response of "200 OK" with a content in "application/json;charset=UTF-8" format. More... | |
static HttpResponseMessage | OkJavaScript (string content) |
Create a response of "200 OK" with a content in "application/javascript;charset=UTF-8" format. More... | |
static HttpResponseMessage | OkJwt (string content) |
Create a response of "200 OK" with a content in "application/jwt" format. More... | |
static HttpResponseMessage | OkHtml (string content) |
Create a response of "200 OK" with a content in "text/html;charset=UTF-8" format. More... | |
static HttpResponseMessage | NoContent () |
Create a response of "204 No Content" . More... | |
static HttpResponseMessage | Location (Uri location) |
Create a response of "302 Found" with a Location header. More... | |
static HttpResponseMessage | Location (string location) |
Create a response of "302 Found" with a Location header. More... | |
static HttpResponseMessage | BadRequest (string content) |
Create a response of "400 Bad Request" with a content in "application/json;charset=UTF-8" format. More... | |
static HttpResponseMessage | Unauthorized (AuthenticationHeaderValue challenge, string content) |
Create a response of "401 Unauthorized" with a WWW-Authenticate header. More... | |
static HttpResponseMessage | Unauthorized (string challenge) |
Create a response of "401 Unauthorized" with a WWW-Authenticate header. More... | |
static HttpResponseMessage | Forbidden (string content) |
Create a response of "403 Forbidden" with a content in "application/json;charset=UTF-8" format. More... | |
static HttpResponseMessage | NotFound (string content) |
Create a response of "404 Not Found" with a content in "application/json;charset=UTF-8" format. More... | |
static HttpResponseMessage | InternalServerError (string content) |
Create a response of "500 Internal Server Error" with a content in "application/json;charset=UTF-8" format. More... | |
static HttpResponseMessage | WwwAuthenticate (HttpStatusCode statusCode, AuthenticationHeaderValue challenge) |
Create a response with a WWW-Authenticate header. More... | |
static HttpResponseMessage | WwwAuthenticate (HttpStatusCode statusCode, string challenge) |
Create a response with a WWW-Authenticate header. More... | |
Utility to generate HttpResponseMessage
instances.
|
inlinestatic |
Create a response of "400 Bad Request"
with a content in "application/json;charset=UTF-8"
format.
content | Response body in JSON format. |
|
inlinestatic |
Create a response of "403 Forbidden"
with a content in "application/json;charset=UTF-8"
format.
content | Response body in JSON format. |
|
inlinestatic |
Create a response of "500 Internal Server Error"
with a content in "application/json;charset=UTF-8"
format.
content | Response body in JSON format. |
|
inlinestatic |
Create a response of "302 Found"
with a Location
header.
location | A value of Location header. |
|
inlinestatic |
Create a response of "302 Found"
with a Location
header.
location | A value of Location header. |
|
inlinestatic |
Create a response of "204 No Content"
.
|
inlinestatic |
Create a response of "404 Not Found"
with a content in "application/json;charset=UTF-8"
format.
content | Response body in JSON format. |
|
inlinestatic |
Create a response of "200 OK"
with a content in "text/html;charset=UTF-8"
format.
content | Response body in HTML format. |
|
inlinestatic |
Create a response of "200 OK"
with a content in "application/javascript;charset=UTF-8"
format.
content | JavaScript |
|
inlinestatic |
Create a response of "200 OK"
with a content in "application/json;charset=UTF-8"
format.
content | Response body in JSON format. |
|
inlinestatic |
Create a response of "200 OK"
with a content in "application/jwt"
format.
content | Response body in JSON format. |
|
inlinestatic |
Create a response of "401 Unauthorized"
with a WWW-Authenticate
header.
challenge | A value of WWW-Authenticate header. |
content | Response body in JSON format, or null . |
|
inlinestatic |
Create a response of "401 Unauthorized"
with a WWW-Authenticate
header.
challenge | A value of WWW-Authenticate header. |
|
inlinestatic |
Create a response with a WWW-Authenticate
header.
statusCode | HTTP status code of the response. |
challenge | The value of the WWW-Authenticate header. |
|
inlinestatic |
Create a response with a WWW-Authenticate
header.
statusCode | An HTTP status code. |
challenge | A value of the WWW-Authenticate header. |