Packages

c

org.http4s.blaze.http

HttpServerStage

class HttpServerStage extends Http1ServerParser with TailStage[ByteBuffer]

Linear Supertypes
TailStage[ByteBuffer], Tail[ByteBuffer], Stage, Http1ServerParser, BodyAndHeaderParser, ParserBase, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HttpServerStage
  2. TailStage
  3. Tail
  4. Stage
  5. Http1ServerParser
  6. BodyAndHeaderParser
  7. ParserBase
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HttpServerStage(maxReqBody: Long, maxNonbody: Int)(handleRequest: HttpService)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def arrayMatches(chars: Array[Char]): Boolean
    Attributes
    protected[org.http4s.blaze.http.http_parser]
    Definition Classes
    ParserBase
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. final def bufferPosition(): Int
    Attributes
    protected[org.http4s.blaze.http.http_parser]
    Definition Classes
    ParserBase
  7. def channelRead(size: Int, timeout: Duration): Future[ByteBuffer]
    Definition Classes
    Tail
  8. final def channelWrite(data: Seq[ByteBuffer], timeout: Duration): Future[Unit]
    Definition Classes
    Tail
  9. def channelWrite(data: Seq[ByteBuffer]): Future[Unit]
    Definition Classes
    Tail
  10. final def channelWrite(data: ByteBuffer, timeout: Duration): Future[Unit]
    Definition Classes
    Tail
  11. def channelWrite(data: ByteBuffer): Future[Unit]
    Definition Classes
    Tail
  12. final def clearBuffer(): Unit
    Attributes
    protected[org.http4s.blaze.http.http_parser]
    Definition Classes
    ParserBase
  13. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. final def contentComplete(): Boolean
    Definition Classes
    BodyAndHeaderParser
  15. final def definedContentLength(): Boolean
    Definition Classes
    BodyAndHeaderParser
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. final def findOutboundStage[C <: Stage](clazz: Class[C]): Option[C]
    Definition Classes
    Tail
  20. final def findOutboundStage(name: String): Option[Stage]
    Definition Classes
    Tail
  21. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  22. final def getContentType(): EndOfContent
    Definition Classes
    BodyAndHeaderParser
  23. final def getString(start: Int, end: Int): String
    Attributes
    protected[org.http4s.blaze.http.http_parser]
    Definition Classes
    ParserBase
  24. final def getString(end: Int): String
    Attributes
    protected[org.http4s.blaze.http.http_parser]
    Definition Classes
    ParserBase
  25. final def getString(): String
    Attributes
    protected[org.http4s.blaze.http.http_parser]
    Definition Classes
    ParserBase
  26. 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
  27. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  28. 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
    Definition Classes
    HttpServerStage → BodyAndHeaderParser
  29. final def headersComplete(): Boolean
    Definition Classes
    BodyAndHeaderParser
  30. final def inChunkedHeaders(): Boolean
    Definition Classes
    BodyAndHeaderParser
  31. def inboundCommand(cmd: InboundCommand): Unit
    Definition Classes
    Stage
  32. final def isChunked(): Boolean
    Definition Classes
    BodyAndHeaderParser
  33. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  34. final def isLenient(): Boolean
    Attributes
    protected[org.http4s.blaze.http.http_parser]
    Definition Classes
    ParserBase
  35. final val logger: Logger
    Attributes
    protected
    Definition Classes
    Stage
  36. def mustNotHaveBody(): Boolean

    determines if a body must not follow the headers

    determines if a body must not follow the headers

    Definition Classes
    Http1ServerParser → BodyAndHeaderParser
  37. val name: String
    Definition Classes
    HttpServerStage → Stage
  38. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  39. final def next(buffer: ByteBuffer, allow8859: Boolean): Char
    Attributes
    protected[org.http4s.blaze.http.http_parser]
    Definition Classes
    ParserBase
  40. final def notify(): Unit
    Definition Classes
    AnyRef
  41. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  42. 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]
    Definition Classes
    BodyAndHeaderParser
    Exceptions thrown
  43. 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]
    Definition Classes
    BodyAndHeaderParser
    Exceptions thrown

    BaseExceptions.BadRequest on invalid input

    BaseExceptions.InvalidState if called when the parser is not ready to accept headers

  44. final def parseRequestLine(in: ByteBuffer): Boolean

    parses the request line.

    parses the request line. Returns true if completed successfully, false if needs input

    Attributes
    protected[org.http4s.blaze.http.http_parser]
    Definition Classes
    Http1ServerParser
  45. 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
  46. final def replaceInline(leafBuilder: LeafBuilder[ByteBuffer], startup: Boolean): HttpServerStage.this.type
    Definition Classes
    Tail
  47. final def requestLineComplete(): Boolean
    Definition Classes
    Http1ServerParser
  48. def reset(): Unit
  49. final def resetLimit(limit: Int): Unit
    Attributes
    protected[org.http4s.blaze.http.http_parser]
    Definition Classes
    ParserBase
  50. final def sendOutboundCommand(cmd: OutboundCommand): Unit
    Definition Classes
    Tail
  51. def shutdownParser(): Unit

    for shutting down the parser and its state

    for shutting down the parser and its state

    Definition Classes
    Http1ServerParser → BodyAndHeaderParser → ParserBase
  52. final def spliceBefore(stage: MidStage[ByteBuffer, ByteBuffer]): Unit
    Definition Classes
    Tail
  53. def stageShutdown(): Unit
    Attributes
    protected
    Definition Classes
    HttpServerStage → Stage
  54. def stageStartup(): Unit
    Definition Classes
    HttpServerStage → Stage
  55. def submitRequestLine(methodString: String, uri: String, scheme: String, majorversion: Int, minorversion: Int): Boolean

    This is the method called by parser when the HTTP request line is parsed

    This is the method called by parser when the HTTP request line is parsed

    methodString

    The method as a string

    uri

    The raw bytes of the URI. These are copied into a ByteBuffer that will not be changed until this parser is reset and reused.

    majorversion

    major version

    minorversion

    minor version

    returns

    true if handling parsing should return.

    Attributes
    protected
    Definition Classes
    HttpServerStage → Http1ServerParser
  56. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  57. def toString(): String
    Definition Classes
    AnyRef → Any
  58. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  59. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  60. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from TailStage[ByteBuffer]

Inherited from Tail[ByteBuffer]

Inherited from Stage

Inherited from Http1ServerParser

Inherited from BodyAndHeaderParser

Inherited from ParserBase

Inherited from AnyRef

Inherited from Any

Ungrouped