Package

spinoco.fs2.http

internal

Permalink

package internal

Source
internal.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. internal
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. val : ByteVector

    Permalink
  2. val : ByteVector

    Permalink
  3. val : ByteVector

    Permalink
  4. val : ByteVector

    Permalink
  5. object ChunkedEncoding

    Permalink

    Created by pach on 20/01/17.

  6. def addressForRequest[F[_]](scheme: Scheme, host: HostPort)(implicit arg0: Sync[F]): F[InetSocketAddress]

    Permalink

    evaluates address from the host port and scheme, if this is a custom scheme we will default to port 8080*

  7. def bodyIsChunked(headers: List[HttpHeader]): Boolean

    Permalink

    yields to true, if chunked encoding header is present *

  8. def httpHeaderAndBody[F[_]](maxHeaderSize: Int): Pipe[F, Byte, (ByteVector, Stream[F, Byte])]

    Permalink

    From the stream of bytes this extracts Http Header and body part.

  9. def liftToSecure[F[_]](sslES: ⇒ ExecutionContext, sslContext: ⇒ SSLContext)(socket: Socket[F], clientMode: Boolean)(implicit arg0: Concurrent[F], arg1: Timer[F]): F[Socket[F]]

    Permalink

    creates a function that lifts supplied socket to secure socket *

  10. def readWithTimeout[F[_]](socket: Socket[F], timeout: FiniteDuration, shallTimeout: F[Boolean], chunkSize: Int)(implicit arg0: Sync[F]): Stream[F, Byte]

    Permalink

    Reads from supplied socket with timeout until shallTimeout yields to true.

    Reads from supplied socket with timeout until shallTimeout yields to true.

    socket

    A socket to read from

    timeout

    A timeout

    shallTimeout

    If true, timeout will be applied, if false timeout won't be applied.

    chunkSize

    Size of chunk to read up to

  11. def swapHeader[H <: HttpHeader](header: H)(headers: List[HttpHeader])(implicit CT: ClassTag[H]): List[HttpHeader]

    Permalink

    swaps header H for new value.

    swaps header H for new value. If header exists, it is discarded. Appends header to the end*

Inherited from AnyRef

Inherited from Any

Ungrouped