Class EventMachine::Protocols::HeaderAndContentProtocol
In: lib/protocols/header_and_content.rb
Parent: Connection

Originally, this subclassed LineAndTextProtocol, which in turn relies on BufferedTokenizer, which doesn‘t gracefully handle the transitions between lines and binary text. Changed 13Sep08 by FCianfrocca.

Methods

Included Modules

LineText2

Constants

ContentLengthPattern = /Content-length:\s*(\d+)/i

Public Class methods

Public Instance methods

Basically a convenience method. We might create a subclass that does this automatically. But it‘s such a performance killer.

[Validate]