C# 클래스 WaveBox.Service.Services.Http.HttpProcessor

상속: IHttpProcessor
파일 보기 프로젝트 열기: einsteinx2/WaveBox 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
DelayedHeaders string>.Dictionary

Private Properties

프로퍼티 타입 설명
ApiProcess void
CleanLastModified System.DateTime
GetSessionCookie string
HandleGETRequest void
HandlePOSTRequest void
ParseRequest void
ReadHeaders void
SetSessionCookie void

공개 메소드들

메소드 설명
HttpProcessor ( TcpClient s ) : System
Process ( ) : void
WriteCompressedText ( byte input, string mimeType, string encoding ) : void
WriteErrorHeader ( ) : void
WriteFile ( Stream fs, int startOffset, long length, string mimeType, string>.IDictionary customHeaders, bool isSendContentLength, System.DateTime lastModified, long limitToBytes = null ) : void
WriteInternalServerErrorHeader ( ) : void
WriteJson ( IApiResponse api ) : void
WriteMethodNotAllowedHeader ( ) : void
WriteNotModifiedHeader ( ) : void
WriteSuccessHeader ( long contentLength, string mimeType, string>.IDictionary customHeaders, System.DateTime lastModified, bool isPartial = false, string encoding = null ) : void
WriteText ( string text, string mimeType ) : void

비공개 메소드들

메소드 설명
ApiProcess ( ) : void
CleanLastModified ( System.DateTime lastModified ) : System.DateTime
GetSessionCookie ( ) : string
HandleGETRequest ( ) : void
HandlePOSTRequest ( ) : void
ParseRequest ( ) : void
ReadHeaders ( ) : void
SetSessionCookie ( string sessionId ) : void

메소드 상세

HttpProcessor() 공개 메소드

public HttpProcessor ( TcpClient s ) : System
s System.Net.Sockets.TcpClient
리턴 System

Process() 공개 메소드

public Process ( ) : void
리턴 void

WriteCompressedText() 공개 메소드

public WriteCompressedText ( byte input, string mimeType, string encoding ) : void
input byte
mimeType string
encoding string
리턴 void

WriteErrorHeader() 공개 메소드

public WriteErrorHeader ( ) : void
리턴 void

WriteFile() 공개 메소드

public WriteFile ( Stream fs, int startOffset, long length, string mimeType, string>.IDictionary customHeaders, bool isSendContentLength, System.DateTime lastModified, long limitToBytes = null ) : void
fs Stream
startOffset int
length long
mimeType string
customHeaders string>.IDictionary
isSendContentLength bool
lastModified System.DateTime
limitToBytes long
리턴 void

WriteInternalServerErrorHeader() 공개 메소드

public WriteInternalServerErrorHeader ( ) : void
리턴 void

WriteJson() 공개 메소드

public WriteJson ( IApiResponse api ) : void
api IApiResponse
리턴 void

WriteMethodNotAllowedHeader() 공개 메소드

public WriteMethodNotAllowedHeader ( ) : void
리턴 void

WriteNotModifiedHeader() 공개 메소드

public WriteNotModifiedHeader ( ) : void
리턴 void

WriteSuccessHeader() 공개 메소드

public WriteSuccessHeader ( long contentLength, string mimeType, string>.IDictionary customHeaders, System.DateTime lastModified, bool isPartial = false, string encoding = null ) : void
contentLength long
mimeType string
customHeaders string>.IDictionary
lastModified System.DateTime
isPartial bool
encoding string
리턴 void

WriteText() 공개 메소드

public WriteText ( string text, string mimeType ) : void
text string
mimeType string
리턴 void

프로퍼티 상세

DelayedHeaders 공개적으로 프로퍼티

public Dictionary DelayedHeaders
리턴 string>.Dictionary