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

Inheritance: IMessageDecoder
Exibir arquivo Open project: jgauffin/Griffin.Framework Class Usage Examples

Public Methods

Method 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

Method 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 method

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

HttpMessageDecoder() public method

Initializes a new instance of the HttpMessageDecoder class.
public HttpMessageDecoder ( ) : System
return System

HttpMessageDecoder() public method

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

ProcessReadBytes() public method

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