Package

akka.http.scaladsl

model

Permalink

package model

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

Type Members

  1. sealed trait BodyPartEntity extends HttpEntity with javadsl.model.BodyPartEntity

    Permalink
  2. sealed trait ByteContentRange extends javadsl.model.ContentRange with ContentRange

    Permalink
  3. sealed trait ContentRange extends javadsl.model.ContentRange with ValueRenderable

    Permalink
  4. sealed trait ContentType extends javadsl.model.ContentType with ValueRenderable

    Permalink

    A ContentType represents a specific MediaType / HttpCharset combination.

    A ContentType represents a specific MediaType / HttpCharset combination.

    If the MediaType is not flexible with regard to the charset used, e.g. because it's a binary MediaType or the charset is fixed, then the ContentType is a simple wrapper.

  5. final case class ContentTypeRange(mediaRange: MediaRange, charsetRange: HttpCharsetRange) extends javadsl.model.ContentTypeRange with ValueRenderable with Product with Serializable

    Permalink
  6. final case class DateTime extends javadsl.model.DateTime with Ordered[DateTime] with Renderable with Product with Serializable

    Permalink

    Immutable, fast and efficient Date + Time implementation without any dependencies.

    Immutable, fast and efficient Date + Time implementation without any dependencies. Does not support TimeZones, all DateTime values are always GMT based. Note that this implementation discards milliseconds (i.e. rounds down to full seconds).

  7. case class EntityStreamException(info: ErrorInfo) extends ExceptionWithErrorInfo with Product with Serializable

    Permalink
  8. final case class EntityStreamSizeException(limit: Long, actualSize: Option[Long] = None) extends RuntimeException with Product with Serializable

    Permalink

    This exception is thrown when the size of the HTTP Entity exceeds the configured limit.

    This exception is thrown when the size of the HTTP Entity exceeds the configured limit. It is possible to configure the limit using configuration options akka.http.parsing.max-content-length or specifically for the server or client side by setting akka.http.[server|client].parsing.max-content-length.

    The limit can also be configured in code, by calling HttpEntity#withSizeLimit on the entity before materializing its dataBytes stream.

  9. final case class ErrorInfo(summary: String = "", detail: String = "") extends Product with Serializable

    Permalink

    Two-level model of error information.

    Two-level model of error information. The summary should explain what is wrong with the request or response *without* directly repeating anything present in the message itself (in order to not open holes for XSS attacks), while the detail can contain additional information from any source (even the request itself).

  10. abstract class ExceptionWithErrorInfo extends RuntimeException

    Permalink

    Marker for exceptions that provide an ErrorInfo

  11. final case class FormData(fields: Query) extends Product with Serializable

    Permalink

    Simple model for application/x-www-form-urlencoded form data.

  12. final case class HttpCharset extends javadsl.model.HttpCharset with SingletonValueRenderable with WithQValue[HttpCharsetRange] with Product with Serializable

    Permalink
  13. sealed abstract class HttpCharsetRange extends javadsl.model.HttpCharsetRange with ValueRenderable with WithQValue[HttpCharsetRange]

    Permalink

    A charset range as encountered in Accept-Charset.

    A charset range as encountered in Accept-Charset. Can either be a single charset, or * if all charsets are supported and optionally a qValue for selecting this choice.

  14. sealed trait HttpEntity extends javadsl.model.HttpEntity

    Permalink

    Models the entity (aka "body" or "content) of an HTTP message.

  15. abstract class HttpHeader extends javadsl.model.HttpHeader with ToStringRenderable

    Permalink

    The model of an HTTP header.

    The model of an HTTP header. In its most basic form headers are simple name-value pairs. Header names are compared in a case-insensitive way.

  16. sealed trait HttpMessage extends javadsl.model.HttpMessage

    Permalink

    Common base class of HttpRequest and HttpResponse.

  17. final case class HttpMethod extends javadsl.model.HttpMethod with SingletonValueRenderable with Product with Serializable

    Permalink

    The method of an HTTP request.

  18. final case class HttpProtocol extends javadsl.model.HttpProtocol with SingletonValueRenderable with Product with Serializable

    Permalink

    The protocol of an HTTP message

  19. final class HttpRequest extends javadsl.model.HttpRequest with HttpMessage

    Permalink

    The immutable model HTTP request model.

  20. final class HttpResponse extends javadsl.model.HttpResponse with HttpMessage

    Permalink

    The immutable HTTP response model.

  21. case class IllegalHeaderException(info: ErrorInfo) extends ExceptionWithErrorInfo with Product with Serializable

    Permalink
  22. case class IllegalRequestException(info: ErrorInfo, status: ClientError) extends ExceptionWithErrorInfo with Product with Serializable

    Permalink
  23. case class IllegalResponseException(info: ErrorInfo) extends ExceptionWithErrorInfo with Product with Serializable

    Permalink
  24. case class IllegalUriException(info: ErrorInfo) extends ExceptionWithErrorInfo with Product with Serializable

    Permalink
  25. case class InvalidContentLengthException(info: ErrorInfo) extends ExceptionWithErrorInfo with Product with Serializable

    Permalink
  26. sealed abstract class MediaRange extends javadsl.model.MediaRange with Renderable with WithQValue[MediaRange]

    Permalink
  27. sealed abstract class MediaType extends javadsl.model.MediaType with LazyValueBytesRenderable with WithQValue[MediaRange]

    Permalink

    A MediaType describes the type of the content of an HTTP message entity.

    A MediaType describes the type of the content of an HTTP message entity.

    While knowledge of the MediaType alone suffices for being able to properly interpret binary content this is not generally the case for non-binary (i.e. character-based) content, which also requires the definition of a specific character encoding (HttpCharset). Therefore MediaType instances are frequently encountered as a member of a ContentType, which groups a MediaType with a potentially required HttpCharset to hold everything required for being able to interpret an HttpEntity.

    MediaTypes come in three basic forms:

    1. Binary: These do not need an additional HttpCharset to be able to form a ContentType. Therefore they can be implicitly converted to the latter.

    2. WithOpenCharset: Most character-based MediaTypes are of this form, which can be combined with all HttpCharset instances to form a ContentType.

    3. WithFixedCharset: Some character-based MediaTypes prescribe a single, clearly defined charset and as such, similarly to binary MediaTypes, do not require the addition of an HttpCharset instances to form a ContentType. The most prominent example is probably application/json which must always be UTF-8 encoded. Like binary MediaTypes WithFixedCharset types can be implicitly converted to a ContentType.

  28. type MessageEntity = RequestEntity

    Permalink

    An entity that can be used for every HttpMessage, i.e.

    An entity that can be used for every HttpMessage, i.e. for requests and responses.

  29. sealed trait Multipart extends javadsl.model.Multipart

    Permalink

    The model of multipart content for media-types multipart/\* (general multipart content), multipart/form-data and multipart/byteranges.

    The model of multipart content for media-types multipart/\* (general multipart content), multipart/form-data and multipart/byteranges.

    The basic modelling classes for these media-types (Multipart.General, Multipart.FormData and Multipart.ByteRanges, respectively) are stream-based but each have a strict counterpart (namely Multipart.General.Strict, Multipart.FormData.Strict and Multipart.ByteRanges.Strict).

  30. final class OptHttpRequest extends AnyVal

    Permalink
  31. final class OptHttpResponse extends AnyVal

    Permalink
  32. case class ParsingException(info: ErrorInfo) extends ExceptionWithErrorInfo with Product with Serializable

    Permalink
  33. sealed abstract class RemoteAddress extends javadsl.model.RemoteAddress with ValueRenderable

    Permalink
  34. sealed trait RequestEntity extends HttpEntity with javadsl.model.RequestEntity with ResponseEntity

    Permalink

    An HttpEntity that can be used for requests.

    An HttpEntity that can be used for requests. Note that all entities that can be used for requests can also be used for responses. (But not the other way around, since HttpEntity.CloseDelimited can only be used for responses!)

  35. sealed trait RequestEntityAcceptance extends javadsl.model.RequestEntityAcceptance

    Permalink
  36. case class RequestTimeoutException(request: HttpRequest, message: String) extends RuntimeException with Product with Serializable

    Permalink
  37. sealed trait ResponseEntity extends HttpEntity with javadsl.model.ResponseEntity

    Permalink

    An HttpEntity that can be used for responses.

    An HttpEntity that can be used for responses. Note that all entities that can be used for requests can also be used for responses. (But not the other way around, since HttpEntity.CloseDelimited can only be used for responses!)

  38. sealed abstract class StatusCode extends javadsl.model.StatusCode with LazyValueBytesRenderable

    Permalink

    The result status code of an HTTP response.

  39. sealed abstract class TransferEncoding extends javadsl.model.TransferEncoding with Renderable

    Permalink
  40. sealed trait UniversalEntity extends javadsl.model.UniversalEntity with MessageEntity with BodyPartEntity

    Permalink
  41. sealed abstract case class Uri extends Product with Serializable

    Permalink

    An immutable model of an internet URI as defined by http://tools.ietf.org/html/rfc3986.

    An immutable model of an internet URI as defined by http://tools.ietf.org/html/rfc3986. All members of this class represent the *decoded* URI elements (i.e. without percent-encoding).

  42. trait WithQValue[T] extends AnyRef

    Permalink

    Helper trait for objects that allow creating new instances with a modified qValue.

Value Members

  1. object ContentRange

    Permalink
  2. object ContentType

    Permalink
  3. object ContentTypeRange extends Serializable

    Permalink
  4. object ContentTypes

    Permalink
  5. object DateTime extends Serializable

    Permalink
  6. object EntityStreamException extends Serializable

    Permalink
  7. object ErrorInfo extends Serializable

    Permalink
  8. object FormData extends Serializable

    Permalink
  9. object HttpCharset extends Serializable

    Permalink
  10. object HttpCharsetRange

    Permalink
  11. object HttpCharsets extends ObjectRegistry[String, HttpCharset]

    Permalink
  12. object HttpEntity

    Permalink
  13. object HttpHeader

    Permalink
  14. object HttpMessage

    Permalink
  15. object HttpMethod extends Serializable

    Permalink
  16. object HttpMethods extends ObjectRegistry[String, HttpMethod]

    Permalink
  17. object HttpProtocols extends ObjectRegistry[String, HttpProtocol]

    Permalink
  18. object HttpRequest

    Permalink
  19. object HttpResponse

    Permalink
  20. object IllegalHeaderException extends Serializable

    Permalink
  21. object IllegalRequestException extends Serializable

    Permalink
  22. object IllegalResponseException extends Serializable

    Permalink
  23. object IllegalUriException extends Serializable

    Permalink
  24. object InvalidContentLengthException extends Serializable

    Permalink
  25. object MediaRange

    Permalink
  26. object MediaRanges extends ObjectRegistry[String, MediaRange]

    Permalink
  27. object MediaType

    Permalink
  28. object MediaTypes extends ObjectRegistry[(String, String), MediaType]

    Permalink
  29. object Multipart

    Permalink
  30. object ParsingException extends Serializable

    Permalink
  31. object RemoteAddress

    Permalink
  32. object RequestEntityAcceptance

    Permalink
  33. object ResponseEntity

    Permalink
  34. object StatusCode

    Permalink
  35. object StatusCodes extends ObjectRegistry[Int, StatusCode]

    Permalink
  36. object TransferEncodings

    Permalink
  37. object Uri extends Serializable

    Permalink
  38. object UriRendering

    Permalink
  39. package headers

    Permalink
  40. package sse

    Permalink
  41. package ws

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped