C# Class Revenj.Http.HttpSocketContext

Inheritance: IRequestContext, IResponseContext
Afficher le fichier Open project: ngs-doo/revenj Class Usage Examples

Méthodes publiques

Свойство Type Description
HttpMethod string
HttpProtocolVersion string
InputStream ChunkedMemoryStream
Limit int
OutputStream ChunkedMemoryStream
RawUrl string

Private Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthode 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 méthode

public AddHeader ( string type, string value ) : void
type string
value string
Résultat void

CopyFrom() public méthode

public CopyFrom ( HttpSocketContext other ) : void
other HttpSocketContext
Résultat void

GetRequestHeader() public méthode

public GetRequestHeader ( string name ) : string
name string
Résultat string

HttpSocketContext() public méthode

public HttpSocketContext ( string prefix, int limit, Routes routes ) : System
prefix string
limit int
routes Routes
Résultat System

Parse() public méthode

public Parse ( Socket socket, RouteMatch &match, RouteHandler &route ) : bool
socket Socket
match RouteMatch
route RouteHandler
Résultat bool

Reset() public méthode

public Reset ( ) : void
Résultat void

Property Details

HttpMethod public_oe property

public string HttpMethod
Résultat string

HttpProtocolVersion public_oe property

public string HttpProtocolVersion
Résultat string

InputStream public_oe property

public ChunkedMemoryStream InputStream
Résultat ChunkedMemoryStream

Limit public_oe property

public int Limit
Résultat int

OutputStream public_oe property

public ChunkedMemoryStream OutputStream
Résultat ChunkedMemoryStream

RawUrl public_oe property

public string RawUrl
Résultat string