Packages

c

org.http4s.blaze.http

HttpClientStage

class HttpClientStage extends Http1ClientParser with TailStage[ByteBuffer]

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

Instance Constructors

  1. new HttpClientStage(timeout: Duration = Duration.Inf)(implicit ec: ExecutionContext = Execution.trampoline)

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. implicit val ec: ExecutionContext
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. final def findOutboundStage[C <: Stage](clazz: Class[C]): Option[C]
    Definition Classes
    Tail
  21. final def findOutboundStage(name: String): Option[Stage]
    Definition Classes
    Tail
  22. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  23. final def getContentType(): EndOfContent
    Definition Classes
    BodyAndHeaderParser
  24. final def getString(start: Int, end: Int): String
    Attributes
    protected[org.http4s.blaze.http.http_parser]
    Definition Classes
    ParserBase
  25. final def getString(end: Int): String
    Attributes
    protected[org.http4s.blaze.http.http_parser]
    Definition Classes
    ParserBase
  26. final def getString(): String
    Attributes
    protected[org.http4s.blaze.http.http_parser]
    Definition Classes
    ParserBase
  27. 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
  28. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  29. 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
    HttpClientStage → BodyAndHeaderParser
  30. final def headersComplete(): Boolean
    Definition Classes
    BodyAndHeaderParser
  31. final def inChunkedHeaders(): Boolean
    Definition Classes
    BodyAndHeaderParser
  32. def inboundCommand(cmd: InboundCommand): Unit
    Definition Classes
    Stage
  33. final def isChunked(): Boolean
    Definition Classes
    BodyAndHeaderParser
  34. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  35. final def isLenient(): Boolean
    Attributes
    protected[org.http4s.blaze.http.http_parser]
    Definition Classes
    ParserBase
  36. final def isStartState(): Boolean
    Definition Classes
    Http1ClientParser
  37. final val logger: Logger
    Attributes
    protected
    Definition Classes
    Stage
  38. def makeRequest(method: String, host: String, uri: String, headers: Seq[(String, String)], body: ByteBuffer, timeout: Duration = Duration.Inf): Future[Response]
  39. def mustNotHaveBody(): Boolean

    determines if a body must not follow the headers

    determines if a body must not follow the headers

    Definition Classes
    Http1ClientParser → BodyAndHeaderParser
  40. def name: String
    Definition Classes
    HttpClientStage → Stage
  41. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  42. final def next(buffer: ByteBuffer, allow8859: Boolean): Char
    Attributes
    protected[org.http4s.blaze.http.http_parser]
    Definition Classes
    ParserBase
  43. final def notify(): Unit
    Definition Classes
    AnyRef
  44. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  45. 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
  46. 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

  47. final def parseResponseLine(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
    Http1ClientParser
  48. 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
  49. final def replaceInline(leafBuilder: LeafBuilder[ByteBuffer], startup: Boolean): HttpClientStage.this.type
    Definition Classes
    Tail
  50. def reset(): Unit
    Attributes
    protected
    Definition Classes
    HttpClientStage → Http1ClientParser → BodyAndHeaderParser → ParserBase
  51. final def resetLimit(limit: Int): Unit
    Attributes
    protected[org.http4s.blaze.http.http_parser]
    Definition Classes
    ParserBase
  52. final def responseLineComplete(): Boolean
    Definition Classes
    Http1ClientParser
  53. final def sendOutboundCommand(cmd: OutboundCommand): Unit
    Definition Classes
    Tail
  54. def shutdownParser(): Unit

    for shutting down the parser and its state

    for shutting down the parser and its state

    Definition Classes
    Http1ClientParser → BodyAndHeaderParser → ParserBase
  55. final def spliceBefore(stage: MidStage[ByteBuffer, ByteBuffer]): Unit
    Definition Classes
    Tail
  56. def stageShutdown(): Unit
    Attributes
    protected
    Definition Classes
    HttpClientStage → Stage
  57. def stageStartup(): Unit
    Attributes
    protected
    Definition Classes
    HttpClientStage → Stage
  58. def submitResponseLine(code: Int, reason: String, scheme: String, majorversion: Int, minorversion: Int): Unit
    Attributes
    protected
    Definition Classes
    HttpClientStage → Http1ClientParser
  59. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  60. def toString(): String
    Definition Classes
    AnyRef → Any
  61. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  62. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  63. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from TailStage[ByteBuffer]

Inherited from Tail[ByteBuffer]

Inherited from Stage

Inherited from Http1ClientParser

Inherited from BodyAndHeaderParser

Inherited from ParserBase

Inherited from AnyRef

Inherited from Any

Ungrouped