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
resourceReceive
functionality executes. When this actor receives a
ProcessRequest
message, that means that the Content-Type is supported & acceptable, and the
request was parsed successfully. After you complete processing, call
complete...
, or
sendError...
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
resourceReceive
functionality executes. When this actor receives a
ProcessRequest
message, that means that the Content-Type is supported & acceptable, and the
request was parsed successfully. After you complete processing, call
complete...
, or
sendError...
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...
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...