C# 클래스 Stumps.FluentBasicHttpResponseExtensions

A class that provides a set of Fluent extension methods to T:Stumps.BasicHttpResponse objects.
파일 보기 프로젝트 열기: Cayan-LLC/stumps

공개 메소드들

메소드 설명
WithBody ( this response, byte buffer ) : BasicHttpResponse

Specifies the body returned as part of the HTTP response.

WithBody ( this response, string body ) : BasicHttpResponse

Specifies the body returned as part of the HTTP response.

WithFile ( this response, string path ) : BasicHttpResponse

Specifies the body returned as part of the HTTP response.

WithHeader ( this response, string headerName, string headerValue ) : BasicHttpResponse

Specifies a header returned as part of the HTTP response.

WithRedirectAddress ( this response, string redirectAddress ) : BasicHttpResponse

Specifies the redirect address returned as part of the HTTP response.

WithStatusCode ( this response, int statusCode ) : BasicHttpResponse

Specifies the status code returned as part of the HTTP response.

WithStatusDescription ( this response, string statusDescription ) : BasicHttpResponse

Specifies the description of the status code returned as part of the HTTP response.

메소드 상세

WithBody() 공개 정적인 메소드

Specifies the body returned as part of the HTTP response.
is null.
public static WithBody ( this response, byte buffer ) : BasicHttpResponse
response this The that returns in response to an HTTP request.
buffer byte The byte array to return as the body of the HTTP response.
리턴 BasicHttpResponse

WithBody() 공개 정적인 메소드

Specifies the body returned as part of the HTTP response.
is null.
public static WithBody ( this response, string body ) : BasicHttpResponse
response this The that returns in response to an HTTP request.
body string The value returned as body of the HTTP response.
리턴 BasicHttpResponse

WithFile() 공개 정적인 메소드

Specifies the body returned as part of the HTTP response.
is null.
public static WithFile ( this response, string path ) : BasicHttpResponse
response this The that returns in response to an HTTP request.
path string The path to the file that contains the HTTP response.
리턴 BasicHttpResponse

WithHeader() 공개 정적인 메소드

Specifies a header returned as part of the HTTP response.
is null.
public static WithHeader ( this response, string headerName, string headerValue ) : BasicHttpResponse
response this The that returns in response to an HTTP request.
headerName string The name of the header.
headerValue string The value of the header.
리턴 BasicHttpResponse

WithRedirectAddress() 공개 정적인 메소드

Specifies the redirect address returned as part of the HTTP response.
is null.
public static WithRedirectAddress ( this response, string redirectAddress ) : BasicHttpResponse
response this The that returns in response to an HTTP request.
redirectAddress string The redirect address returned as part of the HTTP response.
리턴 BasicHttpResponse

WithStatusCode() 공개 정적인 메소드

Specifies the status code returned as part of the HTTP response.
is null.
public static WithStatusCode ( this response, int statusCode ) : BasicHttpResponse
response this The that returns in response to an HTTP request.
statusCode int The status code to return.
리턴 BasicHttpResponse

WithStatusDescription() 공개 정적인 메소드

Specifies the description of the status code returned as part of the HTTP response.
is null.
public static WithStatusDescription ( this response, string statusDescription ) : BasicHttpResponse
response this The that returns in response to an HTTP request.
statusDescription string The description of the status code.
리턴 BasicHttpResponse