Packages

package http

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

Type Members

  1. trait HttpClient [F[_]] extends AnyRef
  2. final case class HttpRequest [F[_]](scheme: Scheme, host: HostPort, header: HttpRequestHeader, body: Stream[F, Byte]) extends HttpRequestOrResponse[F] with Product with Serializable

    Model of Http Request sent by client.

    Model of Http Request sent by client.

    host

    Host/port where to perform the request to

    header

    Header of the request

    body

    Body of the request. If empty, no body will be emitted.

  3. sealed trait HttpRequestOrResponse [F[_]] extends AnyRef

    common request/response methods *

  4. final case class HttpResponse [F[_]](header: HttpResponseHeader, body: Stream[F, Byte]) extends HttpRequestOrResponse[F] with Product with Serializable

    Model of Http Response

    Model of Http Response

    header

    Header of the response

    body

    Body of the response. If empty, no body will be emitted.

Value Members

  1. def client[F[_]](requestCodec: Codec[HttpRequestHeader] = HttpRequestHeaderCodec.defaultCodec, responseCodec: Codec[HttpResponseHeader] = ..., sslStrategy: ⇒ ExecutionContext = ..., sslContext: ⇒ SSLContext = ...)(implicit arg0: ConcurrentEffect[F], arg1: Timer[F], AG: AsynchronousChannelGroup): F[HttpClient[F]]

    Creates a client that can be used to make http requests to servers

    Creates a client that can be used to make http requests to servers

    requestCodec

    Codec used to decode request header

    responseCodec

    Codec used to encode response header

    sslStrategy

    Strategy used to perform blocking SSL operations

  2. def server[F[_]](bindTo: InetSocketAddress, maxConcurrent: Int = Int.MaxValue, receiveBufferSize: Int = 256 * 1024, maxHeaderSize: Int = 10 *1024, requestHeaderReceiveTimeout: Duration = 5.seconds, requestCodec: Codec[HttpRequestHeader] = HttpRequestHeaderCodec.defaultCodec, responseCodec: Codec[HttpResponseHeader] = ..., requestFailure: (Throwable) ⇒ Stream[F, HttpResponse[F]] = ..., sendFailure: (Option[HttpRequestHeader], HttpResponse[F], Throwable) ⇒ Stream[F, Nothing] = HttpServer.handleSendFailure[F])(service: (HttpRequestHeader, Stream[F, Byte]) ⇒ Stream[F, HttpResponse[F]])(implicit arg0: ConcurrentEffect[F], arg1: Timer[F], AG: AsynchronousChannelGroup): Stream[F, Unit]

    Creates simple http server,

    Creates simple http server,

    Serve will run after the resulting stream is run.

    bindTo

    Address and port where to bind server to

    maxConcurrent

    Maximum requests to process concurrently

    receiveBufferSize

    Receive buffer size for each connection

    maxHeaderSize

    Maximum size of http header for incoming requests, in bytes

    requestHeaderReceiveTimeout

    A timeout to await request header to be fully received. Request will fail, if the header won't be read within this timeout.

    requestCodec

    Codec for Http Request Header

    service

    Pipe that defines handling of each incoming request and produces a response

  3. object HttpClient
  4. object HttpRequest extends Serializable
  5. object HttpResponse extends Serializable
  6. object HttpServer

Inherited from AnyRef

Inherited from Any

Ungrouped