Handles the given error.
Handles the given error. Calling this method rather than throwing the exception directly allows the error to transcend thread boundaries and contexts, e.g. when channeling an error from a future execution back to the original scope.
Receives the HttpResponse produced by a Marshaller.
Receives the HttpResponse produced by a Marshaller.
Signals that the Marshaller rejects the marshalling request because none of its target ContentTypes is accepted.
Signals that the Marshaller rejects the marshalling request because none of its target ContentTypes is accepted.
Uses the given entity to start a chunked response stream.
Uses the given entity to start a chunked response stream. The method returns an ActorRef that should be used as the channel for subsequent spray.http.MessageChunk instances and the finalizing spray.http.ChunkedMessageEnd. If a ack is defined it will be sent back to the sender after the initial message part has been successfully passed to the network.
Determines whether the given ContentType is acceptable.
Determines whether the given ContentType is acceptable. If the given ContentType does not define a charset an accepted charset is selected, i.e. the method guarantees that, if a ContentType instance is returned within the option, it will contain a defined charset.
Creates a new ToResponseMarshallingContext based on this one, that overrides the ContentType of the produced entity with the given one.
Creates a new ToResponseMarshallingContext based on this one, that overrides the ContentType of the produced entity with the given one.
Creates a new ToResponseMarshallingContext based on this one, that transforms the produced response using the given function.
Creates a new ToResponseMarshallingContext based on this one, that transforms the produced response using the given function.
A convenience helper base class simplifying the construction of a ToResponseMarshallingContext that wraps another ToResponseMarshallingContext with some extra logic.