Object

spinoco.fs2.http

HttpServer

Related Doc: package http

Permalink

object HttpServer

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

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply[F[_]](maxConcurrent: Int = Int.MaxValue, receiveBufferSize: Int = 256 * 1024, maxHeaderSize: Int = 10 *1024, requestHeaderReceiveTimeout: Duration = 5.seconds, requestCodec: Codec[HttpRequestHeader] = HttpRequestHeaderCodec.defaultCodec, responseCodec: Codec[HttpResponseHeader] = ..., bindTo: InetSocketAddress, service: (HttpRequestHeader, Stream[F, Byte]) ⇒ Stream[F, HttpResponse[F]], requestFailure: (Throwable) ⇒ Stream[F, HttpResponse[F]], sendFailure: (Option[HttpRequestHeader], HttpResponse[F], Throwable) ⇒ Stream[F, Nothing])(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.

    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

    bindTo

    Address and port where to bind server to

    service

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

    requestFailure

    A function to be evaluated when request failed while receiving the header

    sendFailure

    A function to be evaluated, when response has been sending result to client.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def handleRequestParseError[F[_]](err: Throwable): Stream[F, HttpResponse[F]]

    Permalink

    default handler for parsing request errors *

  12. def handleSendFailure[F[_]](header: Option[HttpRequestHeader], response: HttpResponse[F], err: Throwable): Stream[F, Nothing]

    Permalink

    default handler for failures of sending request/response *

  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  19. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped