package internal
- Source
- internal.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- internal
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
- val : ByteVector
- val : ByteVector
- val : ByteVector
- val : ByteVector
-
def
addressForRequest[F[_]](scheme: protocol.http.HttpScheme.Value, host: HostPort)(implicit F: Async[F]): F[InetSocketAddress]
evaluates address from the host port and scheme *
-
def
bodyIsChunked(headers: List[HttpHeader]): Boolean
yields to true, if chunked encoding header is present *
-
def
httpHeaderAndBody[F[_]](maxHeaderSize: Int): Pipe[F, Byte, (ByteVector, Stream[F, Byte])]
From the stream of bytes this extracts Http Header and body part.
-
def
liftToSecure[F[_]](sslStrategy: ⇒ Strategy, sslContext: ⇒ SSLContext)(socket: Socket[F])(implicit F: Async[F]): F[Socket[F]]
creates a function that lifts supplied socket to secure socket *
-
def
readWithTimeout[F[_]](socket: Socket[F], timeout: FiniteDuration, shallTimeout: F[Boolean], chunkSize: Int)(implicit F: Async[F]): Stream[F, Byte]
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
-
def
swapHeader[H <: HttpHeader](header: H)(headers: List[HttpHeader])(implicit CT: ClassTag[H]): List[HttpHeader]
swaps header
H
for new value.swaps header
H
for new value. If header exists, it is discarded. Appends header to the end* -
object
ChunkedEncoding
Created by pach on 20/01/17.