Package

akka.http.scaladsl

common

Permalink

package common

Visibility
  1. Public
  2. All

Type Members

  1. final class CsvEntityStreamingSupport extends javadsl.common.CsvEntityStreamingSupport

    Permalink
  2. abstract class EntityStreamingSupport extends javadsl.common.EntityStreamingSupport

    Permalink

    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.

  3. final class JsonEntityStreamingSupport extends javadsl.common.JsonEntityStreamingSupport

    Permalink
  4. class NameDefaultReceptacle[T] extends AnyRef

    Permalink
  5. class NameDefaultUnmarshallerReceptacle[T] extends AnyRef

    Permalink
  6. class NameOptionReceptacle[T] extends AnyRef

    Permalink
  7. class NameOptionUnmarshallerReceptacle[T] extends AnyRef

    Permalink
  8. class NameReceptacle[T] extends AnyRef

    Permalink
  9. class NameUnmarshallerReceptacle[T] extends AnyRef

    Permalink
  10. class RepeatedValueReceptacle[T] extends AnyRef

    Permalink
  11. class RepeatedValueUnmarshallerReceptacle[T] extends AnyRef

    Permalink
  12. class RequiredValueReceptacle[T] extends AnyRef

    Permalink
  13. class RequiredValueUnmarshallerReceptacle[T] extends AnyRef

    Permalink
  14. sealed abstract class StrictForm extends AnyRef

    Permalink

    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 akka.http.scaladsl.unmarshalling.FromStringUnmarshaller as well as a akka.http.scaladsl.unmarshalling.FromEntityUnmarshaller for the target type T.

    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 akka.http.scaladsl.unmarshalling.FromStringUnmarshaller as well as a akka.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 (akka.http.scaladsl.model.FormData or akka.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]
      }

Value Members

  1. object EntityStreamingSupport

    Permalink

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

  2. object StrictForm

    Permalink
  3. object ToNameReceptacleEnhancements extends ToNameReceptacleEnhancements

    Permalink

Ungrouped