메소드 | 설명 | |
---|---|---|
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 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, 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 |