C# Class Griffin.Net.Protocols.Http.HttpMessageDecoder

Inheritance: IMessageDecoder
Afficher le fichier Open project: jgauffin/Griffin.Framework Class Usage Examples

Méthodes publiques

Méthode Description
Clear ( ) : void

Reset decoder state so that we can decode a new message

HttpMessageDecoder ( ) : System

Initializes a new instance of the HttpMessageDecoder class.

HttpMessageDecoder ( IMessageSerializer messageSerializer ) : System

Initializes a new instance of the HttpMessageDecoder class.

ProcessReadBytes ( ISocketBuffer buffer ) : void

We've received bytes from the socket. Build a message out of them.

Private Methods

Méthode Description
BytesProcessed ( int startOffset, int currentOffset ) : int
OnHeader ( string name, string value ) : void
OnHeaderParsed ( ) : void
OnRequestLine ( string part1, string part2, string part3 ) : void
TriggerMessageReceived ( Griffin.Net.Protocols.Http.HttpMessage message ) : void

Method Details

Clear() public méthode

Reset decoder state so that we can decode a new message
public Clear ( ) : void
Résultat void

HttpMessageDecoder() public méthode

Initializes a new instance of the HttpMessageDecoder class.
public HttpMessageDecoder ( ) : System
Résultat System

HttpMessageDecoder() public méthode

Initializes a new instance of the HttpMessageDecoder class.
messageSerializer
public HttpMessageDecoder ( IMessageSerializer messageSerializer ) : System
messageSerializer IMessageSerializer The message serializer.
Résultat System

ProcessReadBytes() public méthode

We've received bytes from the socket. Build a message out of them.
public ProcessReadBytes ( ISocketBuffer buffer ) : void
buffer ISocketBuffer Buffer
Résultat void