org.apache.pekko.http.scaladsl.common

Members list

Type members

Classlikes

Attributes

Source
CsvEntityStreamingSupport.scala
Supertypes
class Object
trait Matchable
class Any
Show all

Entity streaming support trait allowing rendering and receiving incoming Source[T, _] from HTTP entities.

Entity streaming support trait allowing rendering and receiving incoming Source[T, _] from HTTP entities.

See JsonEntityStreamingSupport or CsvEntityStreamingSupport for default implementations.

Attributes

Companion
object
Source
EntityStreamingSupport.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Entity streaming support, independent of used Json parsing library etc.

Entity streaming support, independent of used Json parsing library etc.

Attributes

Companion
class
Source
EntityStreamingSupport.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
JsonEntityStreamingSupport.scala
Supertypes
class Object
trait Matchable
class Any
Show all
class NameDefaultReceptacle[T](val name: String, val default: T)

Attributes

Source
NameReceptacle.scala
Supertypes
class Object
trait Matchable
class Any
class NameDefaultUnmarshallerReceptacle[T](val name: String, val default: T, val um: FromStringUnmarshaller[T])

Attributes

Source
NameReceptacle.scala
Supertypes
class Object
trait Matchable
class Any
class NameOptionReceptacle[T](val name: String)

Attributes

Source
NameReceptacle.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Source
NameReceptacle.scala
Supertypes
class Object
trait Matchable
class Any
class NameReceptacle[T](val name: String)

Attributes

Source
NameReceptacle.scala
Supertypes
class Object
trait Matchable
class Any
class NameUnmarshallerReceptacle[T](val name: String, val um: FromStringUnmarshaller[T])

Attributes

Source
NameReceptacle.scala
Supertypes
class Object
trait Matchable
class Any
class RepeatedValueReceptacle[T](val name: String)

Attributes

Source
NameReceptacle.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Source
NameReceptacle.scala
Supertypes
class Object
trait Matchable
class Any
class RequiredValueReceptacle[T](val name: String, val requiredValue: T)

Attributes

Source
NameReceptacle.scala
Supertypes
class Object
trait Matchable
class Any
class RequiredValueUnmarshallerReceptacle[T](val name: String, val requiredValue: T, val um: FromStringUnmarshaller[T])

Attributes

Source
NameReceptacle.scala
Supertypes
class Object
trait Matchable
class Any
sealed abstract class StrictForm

Read-only abstraction on top of application/x-www-form-urlencoded and multipart form data, allowing joint unmarshalling access to either kind, if you supply both, a pekko.http.scaladsl.unmarshalling.FromStringUnmarshaller as well as a pekko.http.scaladsl.unmarshalling.FromEntityUnmarshaller for the target type T. Note: In order to allow for random access to the field values streamed multipart form data are strictified! Don't use this abstraction on potentially unbounded forms (e.g. large file uploads).

Read-only abstraction on top of application/x-www-form-urlencoded and multipart form data, allowing joint unmarshalling access to either kind, if you supply both, a pekko.http.scaladsl.unmarshalling.FromStringUnmarshaller as well as a pekko.http.scaladsl.unmarshalling.FromEntityUnmarshaller for the target type T. Note: In order to allow for random access to the field values streamed multipart form data are strictified! Don't use this abstraction on potentially unbounded forms (e.g. large file uploads).

If you only need to consume one type of form (application/x-www-form-urlencoded or multipart) then simply unmarshal directly to the respective form abstraction (pekko.http.scaladsl.model.FormData or pekko.http.scaladsl.model.Multipart.FormData) rather than going through StrictForm.

Simple usage example:

val strictFormFuture = Unmarshal(entity).to[StrictForm]
val fooFieldUnmarshalled: Future[T] =
 strictFormFuture flatMap { form =>
   Unmarshal(form field "foo").to[T]
 }

Attributes

Companion
object
Source
StrictForm.scala
Supertypes
class Object
trait Matchable
class Any
object StrictForm

Attributes

Companion
class
Source
StrictForm.scala
Supertypes
class Object
trait Matchable
class Any
Self type
StrictForm.type

Attributes

Source
NameReceptacle.scala
Supertypes
class Object
trait Matchable
class Any
Self type