C# Class Revenj.Http.HttpSocketContext

Inheritance: IRequestContext, IResponseContext
Mostra file Open project: ngs-doo/revenj Class Usage Examples

Public Properties

Property Type Description
HttpMethod string
HttpProtocolVersion string
InputStream ChunkedMemoryStream
Limit int
OutputStream ChunkedMemoryStream
RawUrl string

Private Properties

Property Type Description
AddContentLength int
AddContentType int
AddServerAndDate int
ForRouteWithAuth void
HttpSocketContext System
IRequestContext string
ReadMethod string
ReadProtocol string
ReadUntil int
ReadUrl RouteMatch?
Return bool
ReturnError bool
ReturnError void
Serialize int
SetupResponse void

Public Methods

Method Description
AddHeader ( string type, string value ) : void
CopyFrom ( HttpSocketContext other ) : void
GetRequestHeader ( string name ) : string
HttpSocketContext ( string prefix, int limit, Routes routes ) : System
Parse ( Socket socket, RouteMatch &match, RouteHandler &route ) : bool
Reset ( ) : void

Private Methods

Method Description
AddContentLength ( long len, int offset ) : int
AddContentType ( string type, int offset ) : int
AddServerAndDate ( int offset ) : int
ForRouteWithAuth ( RouteMatch route, IPrincipal principal ) : void
HttpSocketContext ( ) : System
IRequestContext ( string name ) : string
ReadMethod ( int len, byte buf ) : string
ReadProtocol ( int end ) : string
ReadUntil ( Socket socket, byte match, int position ) : int
ReadUrl ( int rowEnd, RouteHandler &handler ) : RouteMatch?
Return ( Stream stream, Socket socket, bool forceFlush ) : bool
ReturnError ( Socket socket, int status ) : bool
ReturnError ( Socket socket, int status, string message, bool withHeaders ) : void
Serialize ( long value, byte target, int offset ) : int
SetupResponse ( byte response, string method ) : void

Method Details

AddHeader() public method

public AddHeader ( string type, string value ) : void
type string
value string
return void

CopyFrom() public method

public CopyFrom ( HttpSocketContext other ) : void
other HttpSocketContext
return void

GetRequestHeader() public method

public GetRequestHeader ( string name ) : string
name string
return string

HttpSocketContext() public method

public HttpSocketContext ( string prefix, int limit, Routes routes ) : System
prefix string
limit int
routes Routes
return System

Parse() public method

public Parse ( Socket socket, RouteMatch &match, RouteHandler &route ) : bool
socket Socket
match RouteMatch
route RouteHandler
return bool

Reset() public method

public Reset ( ) : void
return void

Property Details

HttpMethod public_oe property

public string HttpMethod
return string

HttpProtocolVersion public_oe property

public string HttpProtocolVersion
return string

InputStream public_oe property

public ChunkedMemoryStream InputStream
return ChunkedMemoryStream

Limit public_oe property

public int Limit
return int

OutputStream public_oe property

public ChunkedMemoryStream OutputStream
return ChunkedMemoryStream

RawUrl public_oe property

public string RawUrl
return string