C# 클래스 ServiceStack.WebHost.Endpoints.Extensions.HttpResponseExtensions

파일 보기 프로젝트 열기: firstsee/ServiceStack

공개 메소드들

메소드 설명
WriteErrorToResponse ( this response, EndpointAttributes contentType, string operationName, string errorMessage, Exception ex ) : void
WriteErrorToResponse ( this response, string contentType, string operationName, string errorMessage, Exception ex ) : void
WriteTextToResponse ( this response, string text, string defaultContentType ) : void
WriteToOutputStream ( Stream responseStream, object result ) : bool
WriteToResponse ( this response, object result, StreamSerializerDelegate defaultAction, string defaultContentType ) : bool

Writes to response. Response headers are customizable by implementing IHasOptions an returning Dictionary of Http headers.

WriteToResponse ( this response, object result, string defaultContentType ) : bool

Writes to response.

비공개 메소드들

메소드 설명
WriteJsonErrorToResponse ( this response, string operationName, string errorMessage, Exception ex ) : void
WriteJsvErrorToResponse ( this response, string operationName, string errorMessage, Exception ex ) : void
WriteXmlErrorToResponse ( this response, string operationName, string errorMessage, Exception ex ) : void

메소드 상세

WriteErrorToResponse() 공개 정적인 메소드

public static WriteErrorToResponse ( this response, EndpointAttributes contentType, string operationName, string errorMessage, Exception ex ) : void
response this
contentType EndpointAttributes
operationName string
errorMessage string
ex System.Exception
리턴 void

WriteErrorToResponse() 공개 정적인 메소드

public static WriteErrorToResponse ( this response, string contentType, string operationName, string errorMessage, Exception ex ) : void
response this
contentType string
operationName string
errorMessage string
ex System.Exception
리턴 void

WriteTextToResponse() 공개 정적인 메소드

public static WriteTextToResponse ( this response, string text, string defaultContentType ) : void
response this
text string
defaultContentType string
리턴 void

WriteToOutputStream() 공개 정적인 메소드

public static WriteToOutputStream ( Stream responseStream, object result ) : bool
responseStream Stream
result object
리턴 bool

WriteToResponse() 공개 정적인 메소드

Writes to response. Response headers are customizable by implementing IHasOptions an returning Dictionary of Http headers.
public static WriteToResponse ( this response, object result, StreamSerializerDelegate defaultAction, string defaultContentType ) : bool
response this The response.
result object Whether or not it was implicity handled by ServiceStack's built-in handlers.
defaultAction StreamSerializerDelegate The default action.
defaultContentType string Default response ContentType.
리턴 bool

WriteToResponse() 공개 정적인 메소드

Writes to response.
public static WriteToResponse ( this response, object result, string defaultContentType ) : bool
response this The response.
result object Whether or not it was implicity handled by ServiceStack's built-in handlers.
defaultContentType string Default response ContentType.
리턴 bool