Метод | Описание | |
---|---|---|
WithBody ( this response, byte buffer ) : |
Specifies the body returned as part of the HTTP response.
|
|
WithBody ( this response, string body ) : |
Specifies the body returned as part of the HTTP response.
|
|
WithFile ( this response, string path ) : |
Specifies the body returned as part of the HTTP response.
|
|
WithHeader ( this response, string headerName, string headerValue ) : |
Specifies a header returned as part of the HTTP response.
|
|
WithRedirectAddress ( this response, string redirectAddress ) : |
Specifies the redirect address returned as part of the HTTP response.
|
|
WithStatusCode ( this response, int statusCode ) : |
Specifies the status code returned as part of the HTTP response.
|
|
WithStatusDescription ( this response, string statusDescription ) : |
Specifies the description of the status code returned as part of the HTTP response.
|
public static WithBody ( this response, byte buffer ) : |
||
response | this | The |
buffer | byte | The byte array to return as the body of the HTTP response. |
Результат |
public static WithBody ( this response, string body ) : |
||
response | this | The |
body | string | The value returned as body of the HTTP response. |
Результат |
public static WithFile ( this response, string path ) : |
||
response | this | The |
path | string | The path to the file that contains the HTTP response. |
Результат |
public static WithHeader ( this response, string headerName, string headerValue ) : |
||
response | this | The |
headerName | string | The name of the header. |
headerValue | string | The value of the header. |
Результат |
public static WithRedirectAddress ( this response, string redirectAddress ) : |
||
response | this | The |
redirectAddress | string | The redirect address returned as part of the HTTP response. |
Результат |
public static WithStatusCode ( this response, int statusCode ) : |
||
response | this | The |
statusCode | int | The status code to return. |
Результат |
public static WithStatusDescription ( this response, string statusDescription ) : |
||
response | this | The |
statusDescription | string | The description of the status code. |
Результат |