abstract class BodyAndHeaderParser extends ParserBase
This HTTP/1.0 HTTP/1.1 parser is strongly inspired by the awesome Jetty parser http://www.eclipse.org/jetty/
- Alphabetic
- By Inheritance
- BodyAndHeaderParser
- ParserBase
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
BodyAndHeaderParser(initialBufferSize: Int, headerSizeLimit: Int, maxChunkSize: Int, isLenient: Boolean)
- Attributes
- protected[org.http4s.blaze.http.http_parser]
Abstract Value Members
-
abstract
def
headerComplete(name: String, value: String): Boolean
This is the method called by parser when a HTTP Header name and value is found
This is the method called by parser when a HTTP Header name and value is found
- name
The name of the header
- value
The value of the header
- returns
True if the parser should return to its caller
- Attributes
- protected[org.http4s.blaze.http.http_parser]
-
abstract
def
mustNotHaveBody(): Boolean
determines if a body must not follow the headers
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
arrayMatches(chars: Array[Char]): Boolean
- Attributes
- protected[org.http4s.blaze.http.http_parser]
- Definition Classes
- ParserBase
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
final
def
bufferPosition(): Int
- Attributes
- protected[org.http4s.blaze.http.http_parser]
- Definition Classes
- ParserBase
-
final
def
clearBuffer(): Unit
- Attributes
- protected[org.http4s.blaze.http.http_parser]
- Definition Classes
- ParserBase
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- final def contentComplete(): Boolean
- final def definedContentLength(): Boolean
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- final def getContentType(): EndOfContent
-
final
def
getString(start: Int, end: Int): String
- Attributes
- protected[org.http4s.blaze.http.http_parser]
- Definition Classes
- ParserBase
-
final
def
getString(end: Int): String
- Attributes
- protected[org.http4s.blaze.http.http_parser]
- Definition Classes
- ParserBase
-
final
def
getString(): String
- Attributes
- protected[org.http4s.blaze.http.http_parser]
- Definition Classes
- ParserBase
-
final
def
getTrimmedString(): String
Returns the string in the buffer minus an leading or trailing whitespace or quotes
Returns the string in the buffer minus an leading or trailing whitespace or quotes
- Attributes
- protected[org.http4s.blaze.http.http_parser]
- Definition Classes
- ParserBase
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- final def headersComplete(): Boolean
- final def inChunkedHeaders(): Boolean
- final def isChunked(): Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
isLenient(): Boolean
- Attributes
- protected[org.http4s.blaze.http.http_parser]
- Definition Classes
- ParserBase
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
next(buffer: ByteBuffer, allow8859: Boolean): Char
- Attributes
- protected[org.http4s.blaze.http.http_parser]
- Definition Classes
- ParserBase
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
parseContent(in: ByteBuffer): ByteBuffer
Parses the buffer into body content
Parses the buffer into body content
- in
ByteBuffer to parse
- returns
a ByteBuffer with the parsed body content. Buffer in may not be depleted. If more data is needed, null is returned. In the case of content complete, an empty ByteBuffer is returned.
- Attributes
- protected[org.http4s.blaze.http.http_parser]
- Exceptions thrown
-
final
def
parseHeaders(in: ByteBuffer): Boolean
Parse headers
Parse headers
- in
input ByteBuffer
- returns
true if successful, false if more input is needed
- Attributes
- protected[org.http4s.blaze.http.http_parser]
- Exceptions thrown
BaseExceptions.BadRequeston invalid inputBaseExceptions.InvalidStateif called when the parser is not ready to accept headers
-
final
def
putChar(c: Char): Unit
Store the char in the internal buffer
Store the char in the internal buffer
- Attributes
- protected[org.http4s.blaze.http.http_parser]
- Definition Classes
- ParserBase
-
final
def
resetLimit(limit: Int): Unit
- Attributes
- protected[org.http4s.blaze.http.http_parser]
- Definition Classes
- ParserBase
-
def
shutdownParser(): Unit
for shutting down the parser and its state
for shutting down the parser and its state
- Definition Classes
- BodyAndHeaderParser → ParserBase
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )