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 HttpEntity produced by a Marshaller.
Receives the HttpEntity produced by a Marshaller. If any headers are given they will be added to the produced HttpMessage.
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 MarshallingContext based on this one, that overrides the ContentType of the produced entity with the given one.
Creates a new MarshallingContext based on this one, that overrides the ContentType of the produced entity with the given one.
Creates a new MarshallingContext based on this one, that transforms the produced entity using the given function.
Creates a new MarshallingContext based on this one, that transforms the produced entity using the given function.
A MarshallingContext serving as a marshalling receptacle, collecting the output of a Marshaller for subsequent postprocessing.