Метод | Описание | |
---|---|---|
DeleteCookie ( string name ) : void | ||
GetContentLength ( ) : long? | ||
HttpResult ( ) : System | ||
HttpResult ( |
||
HttpResult ( |
||
HttpResult ( HttpStatusCode statusCode, string statusDescription ) : System | ||
HttpResult ( IVirtualFile fileResponse, bool asAttachment ) : System | ||
HttpResult ( IVirtualFile fileResponse, string contentType = null, bool asAttachment = false ) : System | ||
HttpResult ( Stream responseStream, string contentType ) : System | ||
HttpResult ( byte responseBytes, string contentType ) : System | ||
HttpResult ( object response ) : System | ||
HttpResult ( object response, HttpStatusCode statusCode ) : System | ||
HttpResult ( object response, string contentType ) : System | ||
HttpResult ( object response, string contentType, HttpStatusCode statusCode ) : System | ||
HttpResult ( string responseText, string contentType ) : System | ||
NotModified ( string description = null, CacheControl cacheControl = null, System.TimeSpan maxAge = null, string eTag = null, System.DateTime lastModified = null ) : HttpResult | ||
Redirect ( string newLocationUri, HttpStatusCode redirectStatus = HttpStatusCode.Found ) : HttpResult | ||
SetCookie ( string name, string value, System.DateTime expiresAt, string path, bool secure = false, bool httpOnly = false ) : void | ||
SetCookie ( string name, string value, System.TimeSpan expiresIn, string path ) : void | ||
SetPermanentCookie ( string name, string value ) : void | ||
SetPermanentCookie ( string name, string value, string path ) : void | ||
SetSessionCookie ( string name, string value ) : void | ||
SetSessionCookie ( string name, string value, string path ) : void | ||
SoftRedirect ( string newLocationUri, object response = null ) : HttpResult |
Respond with a 'Soft redirect' so smart clients (e.g. ajax) have access to the response and can decide whether or not they should redirect
|
|
Status201Created ( object response, string newLocationUri ) : HttpResult | ||
TriggerEvent ( object response, string eventName, string value = null ) : HttpResult |
Decorate the response with an additional client-side event to instruct participating smart clients (e.g. ajax) with hints to transparently invoke client-side functionality
|
|
WritePartialTo ( IResponse response ) : void | ||
WriteTo ( Stream responseStream ) : void |
Метод | Описание | |
---|---|---|
DisposeStream ( ) : void | ||
WriteTo ( Stream responseStream, int paddingLength ) : void |
public DeleteCookie ( string name ) : void | ||
name | string | |
Результат | void |
public HttpResult ( |
||
fileResponse | ||
asAttachment | bool | |
Результат | System |
public HttpResult ( |
||
fileResponse | ||
contentType | string | |
asAttachment | bool | |
Результат | System |
public HttpResult ( HttpStatusCode statusCode, string statusDescription ) : System | ||
statusCode | HttpStatusCode | |
statusDescription | string | |
Результат | System |
public HttpResult ( IVirtualFile fileResponse, bool asAttachment ) : System | ||
fileResponse | IVirtualFile | |
asAttachment | bool | |
Результат | System |
public HttpResult ( IVirtualFile fileResponse, string contentType = null, bool asAttachment = false ) : System | ||
fileResponse | IVirtualFile | |
contentType | string | |
asAttachment | bool | |
Результат | System |
public HttpResult ( Stream responseStream, string contentType ) : System | ||
responseStream | Stream | |
contentType | string | |
Результат | System |
public HttpResult ( byte responseBytes, string contentType ) : System | ||
responseBytes | byte | |
contentType | string | |
Результат | System |
public HttpResult ( object response ) : System | ||
response | object | |
Результат | System |
public HttpResult ( object response, HttpStatusCode statusCode ) : System | ||
response | object | |
statusCode | HttpStatusCode | |
Результат | System |
public HttpResult ( object response, string contentType ) : System | ||
response | object | |
contentType | string | |
Результат | System |
public HttpResult ( object response, string contentType, HttpStatusCode statusCode ) : System | ||
response | object | |
contentType | string | |
statusCode | HttpStatusCode | |
Результат | System |
public HttpResult ( string responseText, string contentType ) : System | ||
responseText | string | |
contentType | string | |
Результат | System |
public static NotModified ( string description = null, CacheControl cacheControl = null, System.TimeSpan maxAge = null, string eTag = null, System.DateTime lastModified = null ) : HttpResult | ||
description | string | |
cacheControl | CacheControl | |
maxAge | System.TimeSpan | |
eTag | string | |
lastModified | System.DateTime | |
Результат | HttpResult |
public static Redirect ( string newLocationUri, HttpStatusCode redirectStatus = HttpStatusCode.Found ) : HttpResult | ||
newLocationUri | string | |
redirectStatus | HttpStatusCode | |
Результат | HttpResult |
public SetCookie ( string name, string value, System.DateTime expiresAt, string path, bool secure = false, bool httpOnly = false ) : void | ||
name | string | |
value | string | |
expiresAt | System.DateTime | |
path | string | |
secure | bool | |
httpOnly | bool | |
Результат | void |
public SetCookie ( string name, string value, System.TimeSpan expiresIn, string path ) : void | ||
name | string | |
value | string | |
expiresIn | System.TimeSpan | |
path | string | |
Результат | void |
public SetPermanentCookie ( string name, string value ) : void | ||
name | string | |
value | string | |
Результат | void |
public SetPermanentCookie ( string name, string value, string path ) : void | ||
name | string | |
value | string | |
path | string | |
Результат | void |
public SetSessionCookie ( string name, string value ) : void | ||
name | string | |
value | string | |
Результат | void |
public SetSessionCookie ( string name, string value, string path ) : void | ||
name | string | |
value | string | |
path | string | |
Результат | void |
public static SoftRedirect ( string newLocationUri, object response = null ) : HttpResult | ||
newLocationUri | string | |
response | object | |
Результат | HttpResult |
public static Status201Created ( object response, string newLocationUri ) : HttpResult | ||
response | object | |
newLocationUri | string | |
Результат | HttpResult |
public static TriggerEvent ( object response, string eventName, string value = null ) : HttpResult | ||
response | object | |
eventName | string | |
value | string | |
Результат | HttpResult |
public WritePartialTo ( IResponse response ) : void | ||
response | IResponse | |
Результат | void |
public WriteTo ( Stream responseStream ) : void | ||
responseStream | Stream | |
Результат | void |