C# 클래스 ServiceStack.HttpResult

상속: IHttpResult, IStreamWriter, IPartialWriter
파일 보기 프로젝트 열기: ServiceStack/ServiceStack 1 사용 예제들

공개 메소드들

메소드 설명
DeleteCookie ( string name ) : void
GetContentLength ( ) : long?
HttpResult ( ) : System
HttpResult ( FileInfo fileResponse, bool asAttachment ) : System
HttpResult ( FileInfo fileResponse, string contentType = null, bool asAttachment = false ) : System
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

메소드 상세

DeleteCookie() 공개 메소드

public DeleteCookie ( string name ) : void
name string
리턴 void

GetContentLength() 공개 메소드

public GetContentLength ( ) : long?
리턴 long?

HttpResult() 공개 메소드

public HttpResult ( ) : System
리턴 System

HttpResult() 공개 메소드

public HttpResult ( FileInfo fileResponse, bool asAttachment ) : System
fileResponse System.IO.FileInfo
asAttachment bool
리턴 System

HttpResult() 공개 메소드

public HttpResult ( FileInfo fileResponse, string contentType = null, bool asAttachment = false ) : System
fileResponse System.IO.FileInfo
contentType string
asAttachment bool
리턴 System

HttpResult() 공개 메소드

public HttpResult ( HttpStatusCode statusCode, string statusDescription ) : System
statusCode HttpStatusCode
statusDescription string
리턴 System

HttpResult() 공개 메소드

public HttpResult ( IVirtualFile fileResponse, bool asAttachment ) : System
fileResponse IVirtualFile
asAttachment bool
리턴 System

HttpResult() 공개 메소드

public HttpResult ( IVirtualFile fileResponse, string contentType = null, bool asAttachment = false ) : System
fileResponse IVirtualFile
contentType string
asAttachment bool
리턴 System

HttpResult() 공개 메소드

public HttpResult ( Stream responseStream, string contentType ) : System
responseStream Stream
contentType string
리턴 System

HttpResult() 공개 메소드

public HttpResult ( byte responseBytes, string contentType ) : System
responseBytes byte
contentType string
리턴 System

HttpResult() 공개 메소드

public HttpResult ( object response ) : System
response object
리턴 System

HttpResult() 공개 메소드

public HttpResult ( object response, HttpStatusCode statusCode ) : System
response object
statusCode HttpStatusCode
리턴 System

HttpResult() 공개 메소드

public HttpResult ( object response, string contentType ) : System
response object
contentType string
리턴 System

HttpResult() 공개 메소드

public HttpResult ( object response, string contentType, HttpStatusCode statusCode ) : System
response object
contentType string
statusCode HttpStatusCode
리턴 System

HttpResult() 공개 메소드

public HttpResult ( string responseText, string contentType ) : System
responseText string
contentType string
리턴 System

NotModified() 공개 정적인 메소드

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

Redirect() 공개 정적인 메소드

public static Redirect ( string newLocationUri, HttpStatusCode redirectStatus = HttpStatusCode.Found ) : HttpResult
newLocationUri string
redirectStatus HttpStatusCode
리턴 HttpResult

SetCookie() 공개 메소드

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

SetCookie() 공개 메소드

public SetCookie ( string name, string value, System.TimeSpan expiresIn, string path ) : void
name string
value string
expiresIn System.TimeSpan
path string
리턴 void

SetPermanentCookie() 공개 메소드

public SetPermanentCookie ( string name, string value ) : void
name string
value string
리턴 void

SetPermanentCookie() 공개 메소드

public SetPermanentCookie ( string name, string value, string path ) : void
name string
value string
path string
리턴 void

SetSessionCookie() 공개 메소드

public SetSessionCookie ( string name, string value ) : void
name string
value string
리턴 void

SetSessionCookie() 공개 메소드

public SetSessionCookie ( string name, string value, string path ) : void
name string
value string
path string
리턴 void

SoftRedirect() 공개 정적인 메소드

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
public static SoftRedirect ( string newLocationUri, object response = null ) : HttpResult
newLocationUri string
response object
리턴 HttpResult

Status201Created() 공개 정적인 메소드

public static Status201Created ( object response, string newLocationUri ) : HttpResult
response object
newLocationUri string
리턴 HttpResult

TriggerEvent() 공개 정적인 메소드

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
public static TriggerEvent ( object response, string eventName, string value = null ) : HttpResult
response object
eventName string
value string
리턴 HttpResult

WritePartialTo() 공개 메소드

public WritePartialTo ( IResponse response ) : void
response IResponse
리턴 void

WriteTo() 공개 메소드

public WriteTo ( Stream responseStream ) : void
responseStream Stream
리턴 void