Package

spinoco.fs2

http

Permalink

package http

Source
http.scala
Linear Supertypes
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

    Permalink
  2. final case class HttpRequest[F[_]](scheme: protocol.http.HttpScheme.Value, host: HostPort, header: HttpRequestHeader, body: Stream[F, Byte]) extends HttpRequestOrResponse[F] with Product with Serializable

    Permalink

    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

    Permalink

    common request/response methods *

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

    Permalink

    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. object HttpClient

    Permalink
  2. object HttpRequest extends Serializable

    Permalink
  3. object HttpResponse extends Serializable

    Permalink
  4. object HttpServer

    Permalink
  5. package body

    Permalink
  6. def client[F[_]](requestCodec: Codec[HttpRequestHeader] = HttpRequestHeaderCodec.defaultCodec, responseCodec: Codec[HttpResponseHeader] = ..., sslStrategy: ⇒ Strategy = ..., sslContext: ⇒ SSLContext = ...)(implicit AG: AsynchronousChannelGroup, F: Async[F]): F[HttpClient[F]]

    Permalink

    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

  7. package internal

    Permalink
  8. package routing

    Permalink
  9. 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 AG: AsynchronousChannelGroup, F: Async[F]): Stream[F, Unit]

    Permalink

    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

  10. package sse

    Permalink
  11. package websocket

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped