Method | Description | |
---|---|---|
AsImmutable ( ) : HTTPResponse |
Converts this HTTPResponseBuilder into an immutable HTTPResponse.
|
|
HTTPResponseBuilder ( HTTPRequest HTTPRequest, HTTPStatusCode HTTPStatusCode = null ) : System |
Create a new HTTP response.
|
|
OK ( HTTPRequest HTTPRequest, Action |
Create a new 200-OK HTTP response and apply the given delegate.
|
|
OK ( HTTPRequest HTTPRequest, HTTPResponseBuilder>.Func |
Create a new 200-OK HTTP response and apply the given delegate.
|
|
Set ( HTTPHeaderField HeaderField, Object Value ) : |
Set a HTTP header field. A field value of NULL will remove the field from the header.
|
|
SetCacheControl ( String CacheControl ) : |
Set the HTTP CacheControl.
|
|
SetConnection ( String Connection ) : |
Set the HTTP connection.
|
|
SetContent ( Byte ByteArray ) : |
The HTTP content/body.
|
|
SetContent ( Stream ContentStream ) : |
The HTTP content/body as a stream.
|
|
SetContent ( String String ) : |
The HTTP content/body.
|
|
SetContentEncoding ( |
Set the HTTP Content-Encoding.
|
|
SetContentLanguage ( List |
Set the HTTP Content-Languages.
|
|
SetContentLength ( System.UInt64 ContentLength ) : |
Set the HTTP Content-Length.
|
|
SetContentLocation ( String ContentLocation ) : |
Set the HTTP ContentLocation.
|
|
SetContentMD5 ( String ContentMD5 ) : |
Set the HTTP ContentMD5.
|
|
SetContentRange ( String ContentRange ) : |
Set the HTTP ContentRange.
|
|
SetContentType ( HTTPContentType ContentType ) : |
Set the HTTP Content-Type.
|
|
SetDate ( System.DateTime Date ) : |
Set the HTTP Date.
|
|
SetHTTPStatusCode ( HTTPStatusCode HTTPStatusCode ) : |
Set the HTTP status code.
|
|
SetProtocolName ( String ProtocolName ) : |
Set the protocol name.
|
|
SetProtocolVersion ( HTTPVersion ProtocolVersion ) : |
Set the protocol version.
|
|
SetVia ( String Via ) : |
Set the HTTP Via.
|
Method | Description | |
---|---|---|
PrepareImmutability ( ) : void |
Prepares the immutability of an HTTP PDU, e.g. calculates and set the Content-Length header.
|
public HTTPResponseBuilder ( HTTPRequest HTTPRequest, HTTPStatusCode HTTPStatusCode = null ) : System | ||
HTTPRequest | HTTPRequest | The HTTP request for this response. |
HTTPStatusCode | HTTPStatusCode | A HTTP status code |
return | System |
public static OK ( HTTPRequest HTTPRequest, Action |
||
HTTPRequest | HTTPRequest | |
Configurator | Action |
A delegate to configure the HTTP response. |
return |
public static OK ( HTTPRequest HTTPRequest, HTTPResponseBuilder>.Func |
||
HTTPRequest | HTTPRequest | |
Configurator | HTTPResponseBuilder>.Func | A delegate to configure the HTTP response. |
return |
public Set ( HTTPHeaderField HeaderField, Object Value ) : |
||
HeaderField | HTTPHeaderField | The header field. |
Value | Object | The value. NULL will remove the field from the header. |
return |
public SetCacheControl ( String CacheControl ) : |
||
CacheControl | String | CacheControl. |
return |
public SetConnection ( String Connection ) : |
||
Connection | String | A connection. |
return |
public SetContent ( Byte ByteArray ) : |
||
ByteArray | Byte | The HTTP content/body. |
return |
public SetContent ( Stream ContentStream ) : |
||
ContentStream | Stream | |
return |
public SetContent ( String String ) : |
||
String | String | The HTTP content/body. |
return |
public SetContentEncoding ( |
||
ContentEncoding | The encoding of the HTTP content/body. | |
return |
public SetContentLanguage ( List |
||
ContentLanguages | List |
The languages of the HTTP content/body. |
return |
public SetContentLength ( System.UInt64 ContentLength ) : |
||
ContentLength | System.UInt64 | The length of the HTTP content/body. |
return |
public SetContentLocation ( String ContentLocation ) : |
||
ContentLocation | String | ContentLocation. |
return |
public SetContentMD5 ( String ContentMD5 ) : |
||
ContentMD5 | String | ContentMD5. |
return |
public SetContentRange ( String ContentRange ) : |
||
ContentRange | String | ContentRange. |
return |
public SetContentType ( HTTPContentType ContentType ) : |
||
ContentType | HTTPContentType | The type of the HTTP content/body. |
return |
public SetDate ( System.DateTime Date ) : |
||
Date | System.DateTime | DateTime. |
return |
public SetHTTPStatusCode ( HTTPStatusCode HTTPStatusCode ) : |
||
HTTPStatusCode | HTTPStatusCode | A HTTP status code. |
return |
public SetProtocolName ( String ProtocolName ) : |
||
ProtocolName | String | The protocol name. |
return |
public SetProtocolVersion ( HTTPVersion ProtocolVersion ) : |
||
ProtocolVersion | HTTPVersion | The protocol version. |
return |
public SetVia ( String Via ) : |
||
Via | String | Via. |
return |