Package

org

http4s

Permalink

package http4s

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

Type Members

  1. final case class AttributeEntry[T](key: AttributeKey[T], value: T) extends Product with Serializable

    Permalink

    A map entry where key is constrained to only be associated with a fixed value of type T.

  2. final class AttributeKey[T] extends AnyRef

    Permalink

    A key in an AttributeMap that constrains its associated value to be of type T.

    A key in an AttributeMap that constrains its associated value to be of type T. The key is uniquely defined by its reference: there are no duplicate keys, even those with the same name and type.

  3. final class AttributeMap extends AnyRef

    Permalink

    An immutable map where an AttributeKey for a fixed type T can only be associated with values of type T.

    An immutable map where an AttributeKey for a fixed type T can only be associated with values of type T. Because the equality of keys is based on reference, it is therefore possible for this map to contain mappings for keys with the same label and same types.

  4. type AuthScheme = CaseInsensitiveString

    Permalink
  5. case class AuthedRequest[F[_], A](authInfo: A, req: Request[F]) extends Product with Serializable

    Permalink
  6. type AuthedService[T, F[_]] = Kleisli[[β$1$]OptionT[F, β$1$], AuthedRequest[F, T], Response[F]]

    Permalink

    We need to change the order of type parameters to make partial unification trigger.

    We need to change the order of type parameters to make partial unification trigger. See https://github.com/http4s/http4s/issues/1506

  7. final case class BasicCredentials(username: String, password: String) extends Product with Serializable

    Permalink
  8. sealed trait CacheDirective extends Product with Renderable

    Permalink
  9. type Callback[A] = (Either[Throwable, A]) ⇒ Unit

    Permalink
  10. final case class Challenge(scheme: String, realm: String, params: Map[String, String] = Map.empty) extends Renderable with Product with Serializable

    Permalink
  11. final case class Charset extends Renderable with Product with Serializable

    Permalink
  12. sealed abstract class CharsetRange extends HasQValue with Renderable

    Permalink
  13. trait CharsetRangeInstances extends AnyRef

    Permalink
  14. class ContentCoding extends HasQValue with Ordered[ContentCoding] with Renderable

    Permalink
  15. final case class Cookie(name: String, content: String, expires: Option[HttpDate] = None, maxAge: Option[Long] = None, domain: Option[String] = None, path: Option[String] = None, secure: Boolean = false, httpOnly: Boolean = false, extension: Option[String] = None) extends Renderable with Product with Serializable

    Permalink
  16. sealed abstract class Credentials extends Renderable

    Permalink
  17. trait DecodeFailure extends RuntimeException with MessageFailure

    Permalink

    Indicates a problem decoding a Message.

    Indicates a problem decoding a Message. This may either be a problem with the entity headers or with the entity itself.

  18. type DecodeResult[F[_], A] = EitherT[F, DecodeFailure, A]

    Permalink
  19. final case class Entity[+F[_]](body: EntityBody[F], length: Option[Long] = None) extends Product with Serializable

    Permalink
  20. type EntityBody[+F[_]] = Stream[F, Byte]

    Permalink
  21. trait EntityDecoder[F[_], T] extends AnyRef

    Permalink

    A type that can be used to decode a Message EntityDecoder is used to attempt to decode a Message returning the entire resulting A.

    A type that can be used to decode a Message EntityDecoder is used to attempt to decode a Message returning the entire resulting A. If an error occurs it will result in a failed effect. The default decoders provided here are not streaming, but one could implement a streaming decoder by having the value of A be some kind of streaming construct.

    T

    result type produced by the decoder

    Annotations
    @implicitNotFound( ... )
  22. trait EntityDecoderInstances extends AnyRef

    Permalink

    Implementations of the EntityDecoder instances

  23. trait EntityEncoder[F[_], A] extends AnyRef

    Permalink
    Annotations
    @implicitNotFound( ... )
  24. trait EntityEncoderInstances extends EntityEncoderInstances0

    Permalink
  25. trait EntityEncoderInstances0 extends AnyRef

    Permalink
  26. type EventStream[F[_]] = Stream[F, ServerSentEvent]

    Permalink

    A stream of server-sent events

  27. trait HasQValue extends AnyRef

    Permalink
  28. sealed trait Header extends Renderable with Product

    Permalink

    Abstract representation o the HTTP header

    Abstract representation o the HTTP header

    See also

    org.http4s.HeaderKey

  29. sealed trait HeaderKey extends AnyRef

    Permalink
  30. final class Headers extends Iterable[Header] with IterableLike[Header, Headers]

    Permalink

    A collection of HTTP Headers

  31. trait Http4s extends Http4sInstances with Http4sFunctions with AllSyntax

    Permalink
  32. trait Http4sFunctions extends QValueFunctions with UriFunctions

    Permalink
  33. trait Http4sInstances extends EntityDecoderInstances with HttpVersionInstances with EntityEncoderInstances with CharsetRangeInstances with QValueInstances with MethodInstances with StatusInstances

    Permalink
  34. final case class Http4sVersion(major: Int, minor: Int) extends Product with Serializable

    Permalink
  35. trait HttpCodec[A] extends Renderer[A]

    Permalink
  36. class HttpDate extends Renderable with Ordered[HttpDate]

    Permalink

    An HTTP-date value represents time as an instance of Coordinated Universal Time (UTC).

    An HTTP-date value represents time as an instance of Coordinated Universal Time (UTC). It expresses time at a resolution of one second. By using it over java.time.Instant in the model, we assure that if two headers render equally, their values are equal.

    See also

    https://tools.ietf.org/html/rfc7231#page65

  37. type HttpService[F[_]] = Kleisli[[β$0$]OptionT[F, β$0$], Request[F], Response[F]]

    Permalink

    A Kleisli that produces an effect to compute an OptionT[F]] from a Request[F].

    A Kleisli that produces an effect to compute an OptionT[F]] from a Request[F]. In case an OptionT.none is computed the server backend should respond with a 404. An HttpService can be run on any supported http4s server backend, such as Blaze, Jetty, or Tomcat.

  38. final case class HttpVersion extends Renderable with Ordered[HttpVersion] with Product with Serializable

    Permalink

    An HTTP version, as seen on the start line of an HTTP request or response.

    An HTTP version, as seen on the start line of an HTTP request or response.

    See also

    [http://tools.ietf.org/html/rfc7230#section-2.6 RFC 7320, Section 2.6

  39. trait HttpVersionInstances extends AnyRef

    Permalink
  40. final case class InvalidBodyException(msg: String) extends Exception with NoStackTrace with Product with Serializable

    Permalink

    Exception dealing with invalid body

    Exception dealing with invalid body

    msg

    description if what makes the body invalid

  41. final case class InvalidMessageBodyFailure(details: String, cause: Option[Throwable] = None) extends RuntimeException with MessageBodyFailure with Product with Serializable

    Permalink

    Indicates a semantic error decoding the body of an HTTP Message.

  42. final case class InvalidResponseException(msg: String) extends Exception with NoStackTrace with Product with Serializable

    Permalink

    Exception dealing with invalid response

    Exception dealing with invalid response

    msg

    description if what makes the response invalid

  43. final case class LanguageTag(primaryTag: String, q: QValue = QValue.One, subTags: Seq[String] = Nil) extends Renderable with Product with Serializable

    Permalink
  44. final case class MalformedMessageBodyFailure(details: String, cause: Option[Throwable] = None) extends RuntimeException with MessageBodyFailure with Product with Serializable

    Permalink

    Indicates an syntactic error decoding the body of an HTTP Message.

  45. sealed class MediaRange extends Renderable

    Permalink
  46. sealed class MediaType extends MediaRange

    Permalink
  47. final case class MediaTypeMismatch(messageType: MediaType, expected: Set[MediaRange]) extends UnsupportedMediaTypeFailure with Product with Serializable

    Permalink

    Indicates that no EntityDecoder matches the MediaType of the Message being decoded

  48. final case class MediaTypeMissing(expected: Set[MediaRange]) extends UnsupportedMediaTypeFailure with Product with Serializable

    Permalink

    Indicates that a Message attempting to be decoded has no MediaType and no EntityDecoder was lenient enough to accept it.

  49. sealed trait Message[F[_]] extends MessageOps[F]

    Permalink

    Represents a HTTP Message.

    Represents a HTTP Message. The interesting subclasses are Request and Response while most of the functionality is found in MessageOps and ResponseOps

    See also

    MessageOps, ResponseOps

  50. trait MessageBodyFailure extends RuntimeException with DecodeFailure

    Permalink

    Indicates a problem decoding a Message body.

  51. trait MessageFailure extends RuntimeException

    Permalink

    Indicates a failure to handle an HTTP Message.

  52. trait MessageOps[F[_]] extends Any

    Permalink
  53. sealed abstract case class Method extends Renderable with Semantics with Product with Serializable

    Permalink

    An HTTP method.

    An HTTP method.

    See also

    [http://www.iana.org/assignments/http-methods/http-methods.xhtml IANA HTTP Method Registry]

    [http://tools.ietf.org/html/rfc7231#section-4 RFC7321, Section 4]

  54. trait MethodInstances extends AnyRef

    Permalink
  55. final case class ParseFailure(sanitized: String, details: String) extends RuntimeException with MessageFailure with NoStackTrace with Product with Serializable

    Permalink

    Indicates an error parsing an HTTP Message.

    Indicates an error parsing an HTTP Message.

    sanitized

    May safely be displayed to a client to describe an error condition. Should not echo any part of a Request.

    details

    Contains any relevant details omitted from the sanitized version of the error. This may freely echo a Request.

  56. type ParseResult[+A] = Either[ParseFailure, A]

    Permalink
  57. final class QValue extends AnyVal with Ordered[QValue]

    Permalink

    A Quality Value.

    A Quality Value. Represented as thousandths for an exact representation rounded to three decimal places.

    See also

    RFC 2616, Section 3.9

  58. trait QValueFunctions extends AnyRef

    Permalink
  59. trait QValueInstances extends AnyRef

    Permalink
  60. final class Query extends IndexedSeq[KeyValue] with IndexedSeqOptimized[KeyValue, Query] with QueryOps with Renderable

    Permalink

    Collection representation of a query string

    Collection representation of a query string

    It is a indexed sequence of key and maybe a value pairs which maps precisely to a query string, modulo the identity of separators.

    When rendered, the resulting String will have the pairs separated by '&' while the key is separated from the value with '='

  61. trait QueryOps extends AnyRef

    Permalink
  62. trait QueryParam[T] extends AnyRef

    Permalink

    type class defining the key of a query parameter Usually used in conjunction with QueryParamEncoder and QueryParamDecoder

  63. trait QueryParamDecoder[T] extends AnyRef

    Permalink

    Type class defining how to decode a QueryParameterValue into a T

    Type class defining how to decode a QueryParameterValue into a T

    See also

    QueryParamCodecLaws

  64. trait QueryParamEncoder[T] extends AnyRef

    Permalink

    Type class defining how to encode a T as a QueryParameterValues

    Type class defining how to encode a T as a QueryParameterValues

    See also

    QueryParamCodecLaws

  65. trait QueryParamKeyLike[T] extends AnyRef

    Permalink
  66. final case class QueryParameterKey(value: String) extends AnyVal with Product with Serializable

    Permalink
  67. final case class QueryParameterValue(value: String) extends AnyVal with Product with Serializable

    Permalink
  68. final case class RangeUnit(value: String) extends Renderable with Product with Serializable

    Permalink
  69. sealed abstract case class Request[F[_]] extends Message[F] with RequestOps[F] with Product with Serializable

    Permalink

    Representation of an incoming HTTP message

    Representation of an incoming HTTP message

    A Request encapsulates the entirety of the incoming HTTP request including the status line, headers, and a possible request body.

  70. class RequestCookieJar extends Iterable[Cookie] with IterableLike[Cookie, RequestCookieJar]

    Permalink
  71. trait RequestOps[F[_]] extends MessageOps[F]

    Permalink
  72. final case class Response[F[_]](status: Status = Status.Ok, httpVersion: HttpVersion = HttpVersion.`HTTP/1.1`, headers: Headers = Headers.empty, body: EntityBody[F] = EmptyBody, attributes: AttributeMap = AttributeMap.empty) extends Message[F] with ResponseOps[F] with Product with Serializable

    Permalink

    Representation of the HTTP response to send back to the client

    Representation of the HTTP response to send back to the client

    status

    Status code and message

    headers

    Headers containing all response headers

    body

    EntityBody[F] representing the possible body of the response

    attributes

    AttributeMap containing additional parameters which may be used by the http4s backend for additional processing such as java.io.File object

  73. trait ResponseOps[F[_]] extends MessageOps[F]

    Permalink
  74. case class ServerSentEvent(data: String, eventType: Option[String] = None, id: Option[EventId] = None, retry: Option[Long] = None) extends Renderable with Product with Serializable

    Permalink
  75. sealed abstract case class Status extends Ordered[Status] with Renderable with Product with Serializable

    Permalink

    Representation of the HTTP response code and reason

    Representation of the HTTP response code and reason

    Note: the reason is not important to the protocol and is not considered in equality checks.

    See also

    [http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml IANA Status Code Registry]

    [http://tools.ietf.org/html/rfc7231#section-6 RFC7231, Section 6]

  76. trait StatusInstances extends AnyRef

    Permalink
  77. class TransferCoding extends Ordered[TransferCoding] with Renderable

    Permalink
  78. sealed abstract class UnsupportedMediaTypeFailure extends RuntimeException with DecodeFailure with NoStackTrace

    Permalink

    Indicates that a Message came with no supported MediaType.

  79. final case class Uri(scheme: Option[Scheme] = None, authority: Option[Authority] = None, path: Path = "", query: Query = Query.empty, fragment: Option[Fragment] = None) extends QueryOps with Renderable with Product with Serializable

    Permalink

    Representation of the Request URI

    Representation of the Request URI

    scheme

    optional Uri Scheme. eg, http, https

    authority

    optional Uri Authority. eg, localhost:8080, www.foo.bar

    path

    url-encoded string representation of the path component of the Uri.

    query

    optional Query. url-encoded.

    fragment

    optional Uri Fragment. url-encoded.

  80. trait UriFunctions extends AnyRef

    Permalink
  81. final case class UriTemplate(scheme: Option[Scheme] = None, authority: Option[Authority] = None, path: Path = Nil, query: UriTemplate.Query = Nil, fragment: Fragment = Nil) extends Product with Serializable

    Permalink

    Simple representation of a URI Template that can be rendered as RFC6570 conform string.

    Simple representation of a URI Template that can be rendered as RFC6570 conform string.

    This model reflects only a subset of RFC6570.

    Level 1 and Level 2 are completely modeled and Level 3 features are limited to:

    • Path segments, slash-prefixed
    • Form-style query, ampersand-separated
    • Fragment expansion
  82. final class UrlForm extends AnyVal

    Permalink
  83. type Http4sSyntax = AllSyntax

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 0.16) Moved to org.http4s.syntax.AllSyntax

  84. type Service[F[_], A, B] = Kleisli[F, A, B]

    Permalink

    A Service wraps a function of request type A to an effect that runs to response type B.

    A Service wraps a function of request type A to an effect that runs to response type B. By wrapping the Service, we can compose them using Kleisli operations.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.18) Deprecated in favor of just using Kleisli

Value Members

  1. val ApiVersion: Http4sVersion

    Permalink
  2. object AttributeKey

    Permalink
  3. object AttributeMap

    Permalink
  4. object AuthScheme

    Permalink
  5. object AuthedRequest extends Serializable

    Permalink
  6. object AuthedService

    Permalink
  7. object BasicCredentials extends Serializable

    Permalink
  8. object BuildInfo extends Product with Serializable

    Permalink

    This object was generated by sbt-buildinfo.

  9. object CacheDirective

    Permalink

    A registry of cache-directives, as listed in http://www.iana.org/assignments/http-cache-directives/http-cache-directives.xhtml

  10. object Charset extends Serializable

    Permalink
  11. object CharsetRange extends CharsetRangeInstances

    Permalink
  12. object ContentCoding

    Permalink
  13. object Credentials

    Permalink
  14. object DecodeResult

    Permalink
  15. val DefaultCharset: Charset

    Permalink
  16. val EmptyBody: EntityBody[Nothing]

    Permalink
  17. object Entity extends Serializable

    Permalink
  18. object EntityDecoder extends EntityDecoderInstances

    Permalink

    EntityDecoder is used to attempt to decode an EntityBody This companion object provides a way to create new EntityDecoders along with some commonly used instances which can be resolved implicitly.

  19. object EntityEncoder extends EntityEncoderInstances

    Permalink
  20. object Header

    Permalink
  21. object HeaderKey

    Permalink
  22. object Headers

    Permalink
  23. object Http4s extends Http4s

    Permalink
  24. object Http4sFunctions extends Http4sFunctions

    Permalink
  25. object Http4sInstances extends Http4sInstances

    Permalink
  26. object HttpCodec

    Permalink
  27. object HttpDate

    Permalink
  28. object HttpService extends Serializable

    Permalink
  29. object HttpVersion extends HttpVersionInstances with Serializable

    Permalink
  30. object LanguageTag extends Serializable

    Permalink
  31. object MediaRange

    Permalink
  32. object MediaType extends Registry

    Permalink
  33. object Message

    Permalink
  34. object Method extends MethodInstances with Serializable

    Permalink
  35. object ParseFailure extends Serializable

    Permalink
  36. object ParseResult

    Permalink
  37. object QValue extends QValueInstances with QValueFunctions

    Permalink
  38. object Query

    Permalink
  39. object QueryParam

    Permalink
  40. object QueryParamDecoder

    Permalink
  41. object QueryParamEncoder

    Permalink
  42. object QueryParamKeyLike

    Permalink
  43. object RangeUnit extends Serializable

    Permalink
  44. object Request extends Serializable

    Permalink
  45. object RequestCookieJar

    Permalink
  46. object Response extends Serializable

    Permalink
  47. object ServerSentEvent extends Serializable

    Permalink
  48. object StaticFile

    Permalink
  49. object Status extends Serializable

    Permalink
  50. object TransferCoding

    Permalink
  51. object Uri extends UriFunctions with Serializable

    Permalink
  52. object UriTemplate extends Serializable

    Permalink
  53. object UrlForm

    Permalink
  54. package headers

    Permalink
  55. object implicits extends AllSyntax

    Permalink
  56. package multipart

    Permalink

    This package is the start of a multipart implementation for http4s.

    This package is the start of a multipart implementation for http4s. It is still deficient in a few ways:

    - All encoding is chunked transfers, except for entities small enough to fit into the blaze buffer. This irritates some server implementations.

    - When decoding, chunks are kept in memory. Large ones should be buffered to a temp file.

    - It's a bit handwavy around character sets. Things probably go horribly wrong if you're not UTF-8.

    - This module is lightly tested, and its API should be considered experimental.

    Enter this package at your own risk, but we'd love the feedback.

  57. package parser

    Permalink
  58. package server

    Permalink
  59. package syntax

    Permalink
  60. package util

    Permalink
  61. package websocket

    Permalink

Deprecated Value Members

  1. val Http4sSyntax: all.type

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 0.16) Moved to org.http4s.syntax.all

  2. object Service

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 0.18) Deprecated in favor of Kleisli

Inherited from AnyRef

Inherited from Any

Ungrouped