(myHttpResource: StringAdd).self
(myHttpResource: StringFormat).self
(myHttpResource: ArrowAssoc[MyHttpResource]).x
(Since version 2.10.0) Use leftOfArrow
instead
(myHttpResource: Ensuring[MyHttpResource]).x
(Since version 2.10.0) Use resultOfEnsuring
instead
MyHttpResource implements the
to process incoming HTTP requests. Under the hood, it's a plain Akka actor that adds extra utilities (logging, authorization, parsing, etc...) before and after your
functionality executes. When this actor receives a
message, that means that the Content-Type is supported & acceptable, and the request was parsed successfully. After you complete processing, call
, or
to continue processing the request. After you do that, the processing will continue with appending appropriate response headers, handling timeouts, returning to spray, etc... sendError... }}} After you do that, the processing will continue with appending appropriate response headers, handling timeouts, returning to spray, etc... complete... }}} After you do that, the processing will continue with appending appropriate response headers, handling timeouts, returning to spray, etc... PartialFunction }}} requests. Under the hood, it's a plain Akka actor that adds extra utilities (logging, authorization, parsing, etc...) before and after your
functionality executes. When this actor receives a
message, that means that the Content-Type is supported & acceptable, and the request was parsed successfully. After you complete processing, call
, or
to continue processing the request. After you do that, the processing will continue with appending appropriate response headers, handling timeouts, returning to spray, etc... sendError... }}} After you do that, the processing will continue with appending appropriate response headers, handling timeouts, returning to spray, etc... complete... }}} After you do that, the processing will continue with appending appropriate response headers, handling timeouts, returning to spray, etc...