package model
- Alphabetic
- By Inheritance
- model
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- case class AttributeKey[T](name: String, clazz: Class[_]) extends javadsl.model.AttributeKey[T] with Product with Serializable
- sealed trait BodyPartEntity extends HttpEntity with javadsl.model.BodyPartEntity
- sealed trait ByteContentRange extends javadsl.model.ContentRange with ContentRange
- sealed trait ContentRange extends javadsl.model.ContentRange with ValueRenderable
- sealed trait ContentType extends javadsl.model.ContentType with ValueRenderable
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. - final case class ContentTypeRange(mediaRange: MediaRange, charsetRange: HttpCharsetRange) extends javadsl.model.ContentTypeRange with ValueRenderable with Product with Serializable
- final case class DateTime extends javadsl.model.DateTime with Ordered[DateTime] with Renderable with Product with Serializable
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).
- case class EntityStreamException(info: ErrorInfo) extends ExceptionWithErrorInfo with Product with Serializable
- final case class EntityStreamSizeException(limit: Long, actualSize: Option[Long] = None) extends RuntimeException with Product with Serializable
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
pekko.http.parsing.max-content-length
or specifically for the server or client side by settingpekko.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. - final class ErrorInfo extends Product with Equals with Serializable
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).
- abstract class ExceptionWithErrorInfo extends RuntimeException
Marker for exceptions that provide an ErrorInfo
- final case class FormData(fields: Query) extends Product with Serializable
Simple model for
application/x-www-form-urlencoded
form data. - final case class HttpCharset extends javadsl.model.HttpCharset with SingletonValueRenderable with WithQValue[HttpCharsetRange] with Product with Serializable
- sealed abstract class HttpCharsetRange extends javadsl.model.HttpCharsetRange with ValueRenderable with WithQValue[HttpCharsetRange]
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. - sealed trait HttpEntity extends javadsl.model.HttpEntity
Models the entity (aka "body" or "content") of an HTTP message.
- abstract class HttpHeader extends javadsl.model.HttpHeader with ToStringRenderable
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.
- sealed trait HttpMessage extends javadsl.model.HttpMessage
Common base class of HttpRequest and HttpResponse.
- final case class HttpMethod extends javadsl.model.HttpMethod with SingletonValueRenderable with Product with Serializable
The method of an HTTP request.
- final case class HttpProtocol extends javadsl.model.HttpProtocol with SingletonValueRenderable with Product with Serializable
The protocol of an HTTP message
- final class HttpRequest extends javadsl.model.HttpRequest with HttpMessage
The immutable model HTTP request model.
- final class HttpResponse extends javadsl.model.HttpResponse with HttpMessage
The immutable HTTP response model.
- case class IllegalHeaderException(info: ErrorInfo) extends ExceptionWithErrorInfo with Product with Serializable
- case class IllegalRequestException(info: ErrorInfo, status: ClientError) extends ExceptionWithErrorInfo with Product with Serializable
- case class IllegalResponseException(info: ErrorInfo) extends ExceptionWithErrorInfo with Product with Serializable
- case class IllegalUriException(info: ErrorInfo) extends ExceptionWithErrorInfo with Product with Serializable
- case class InvalidContentLengthException(info: ErrorInfo) extends ExceptionWithErrorInfo with Product with Serializable
- sealed abstract class MediaRange extends javadsl.model.MediaRange with Renderable with WithQValue[MediaRange]
- sealed abstract class MediaType extends javadsl.model.MediaType with LazyValueBytesRenderable with WithQValue[MediaRange]
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 MediaTypesWithFixedCharset
types can be implicitly converted to a ContentType.Not for user extension.
- Annotations
- @DoNotInherit()
- type MessageEntity = RequestEntity
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.
- sealed trait Multipart extends javadsl.model.Multipart
The model of multipart content for media-types
multipart/\*
(general multipart content),multipart/form-data
andmultipart/byteranges
.The model of multipart content for media-types
multipart/\*
(general multipart content),multipart/form-data
andmultipart/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).
- final class OptHttpRequest extends AnyVal
- final class OptHttpResponse extends AnyVal
- case class ParsingException(info: ErrorInfo) extends ExceptionWithErrorInfo with Product with Serializable
- sealed abstract class RemoteAddress extends javadsl.model.RemoteAddress with ValueRenderable
- sealed trait RequestEntity extends HttpEntity with javadsl.model.RequestEntity with ResponseEntity
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!)
- sealed trait RequestEntityAcceptance extends javadsl.model.RequestEntityAcceptance
- trait RequestResponseAssociation extends javadsl.model.RequestResponseAssociation
A marker trait for attribute values that should be (automatically) carried over from request to response.
A marker trait for attribute values that should be (automatically) carried over from request to response.
- Annotations
- @ApiMayChange() @InternalStableApi()
- case class RequestTimeoutException(request: HttpRequest, message: String) extends RuntimeException with Product with Serializable
- sealed trait ResponseEntity extends HttpEntity with javadsl.model.ResponseEntity
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!)
- final class ResponsePromise extends RequestResponseAssociation
An association for completing a future when the response arrives.
- trait SensitiveHttpHeader extends AnyRef
Marker trait for headers which contain portentially secret / sensitive information.
Marker trait for headers which contain portentially secret / sensitive information.
Mixing this trait will make
toString
to return the name of the header thus avoiding any detail leak. - final case class SimpleRequestResponseAttribute[T](value: T) extends RequestResponseAssociation with Product with Serializable
A simple value holder class implementing RequestResponseAssociation.
A simple value holder class implementing RequestResponseAssociation.
- Annotations
- @ApiMayChange()
- class SslSessionInfo extends javadsl.model.SslSessionInfo with ScalaSessionAPI
- sealed abstract class StatusCode extends javadsl.model.StatusCode with LazyValueBytesRenderable
The result status code of an HTTP response.
- class Trailer extends javadsl.model.Trailer
- sealed abstract class TransferEncoding extends javadsl.model.TransferEncoding with Renderable
- sealed trait UniversalEntity extends javadsl.model.UniversalEntity with MessageEntity with BodyPartEntity
- sealed abstract case class Uri extends Product with Serializable
An immutable model of an internet URI as defined by https://tools.ietf.org/html/rfc3986.
An immutable model of an internet URI as defined by https://tools.ietf.org/html/rfc3986. All members of this class represent the *decoded* URI elements (i.e. without percent-encoding), with the exception of 'rawQueryString': rawQueryString should be a string that only contains characters permitted by https://tools.ietf.org/html/rfc3986#section-3.4, any other characters must be percent-encoded (for example through UriParser.parseRawQueryString)
- Annotations
- @DoNotInherit()
- trait WithQValue[T] extends AnyRef
Helper trait for objects that allow creating new instances with a modified qValue.
Value Members
- object AttributeKey extends Serializable
- object AttributeKeys
- object ContentRange
- object ContentType
- object ContentTypeRange extends Serializable
- object ContentTypes
- object DateTime extends Serializable
- object EntityStreamException extends Serializable
- object ErrorInfo extends Serializable
- object FormData extends Serializable
- object HttpCharset extends Serializable
- object HttpCharsetRange
- object HttpCharsets extends ObjectRegistry[String, HttpCharset]
- object HttpEntity
- object HttpHeader
- object HttpMessage
- object HttpMethod extends Serializable
- object HttpMethods extends ObjectRegistry[String, HttpMethod]
- object HttpProtocols extends ObjectRegistry[String, HttpProtocol]
- object HttpRequest
- object HttpResponse
- object IllegalHeaderException extends Serializable
- object IllegalRequestException extends Serializable
- object IllegalResponseException extends Serializable
- object IllegalUriException extends Serializable
- object InvalidContentLengthException extends Serializable
- object MediaRange
- object MediaRanges extends ObjectRegistry[String, MediaRange]
- object MediaType
- object MediaTypes extends ObjectRegistry[(String, String), MediaType]
- object Multipart
- object ParsingException extends Serializable
- object RemoteAddress
- object RequestEntityAcceptance
- object ResponseEntity
- object ResponsePromise
- object SslSessionInfo
- object StatusCode
- object StatusCodes extends ObjectRegistry[Int, StatusCode]
- object Trailer
- object TransferEncodings
- object Uri extends Serializable
- object UriRendering