Commit graph

59 commits

Author SHA1 Message Date
Johannes Rudolph
4d0e1ba231 !htp #16088 replace RouteResult.Failure by Future.failed + handle post-processing directly in Directives
This replaces the awkward post-processing previously done with RequestContext.finish and
prevents the loop-hole of Future.failed which previously allowed errors
to be missed by the current ExceptionHandler.
2014-10-14 12:23:13 +02:00
Johannes Rudolph
0e06406e19 !htp convert List[Rejection] => immutable.Seq[Rejection] everywhere 2014-10-13 18:03:46 +02:00
Endre Sándor Varga
ed27f86791 !htc #15726: Akka HTTP with the new DSL 2014-10-10 13:51:36 +02:00
Mathias
ad26a32e83 !htp,htk Upgrade from Deferrable to new FastFuture, closes #15962 2014-09-25 14:56:34 +02:00
Johannes Rudolph
c77f4e28f6 !hco #15915 introduce more shades of HttpEntities
The introduction of BodyParts again showed that not all entity types are
useful for every kind of context. There are now these contexts where
HttpEntities are used:
 - requests
 - responses
 - body parts

And several kinds of entities:
 - Strict
 - Default
 - Chunked
 - CloseDelimited
 - IndefiniteLength

To increase type safety of the API marker-interfaces are introduced defining
which kinds of entities can be used in which contexts:
 - RequestEntity: Strict, Default, Chunked
 - ResponseEntity: Strict, Default, Chunked, CloseDelimited
 - BodyPartEntity: Strict, Default, IndefiniteLength

Also, to be able still to provide abstractions over some kinds of entities
additional auxiliary interfaces were necessary:
 - MessageEntity = RequestEntity >: ResponseEntity: Strict, Default, Chunked (type alias for RequestEntity)
 - UniversalEntity = RequestEntity with ResponseEntity with BodyPartEntity = Strict, Default
2014-09-22 12:03:33 +02:00
Mathias
27a7cb0664 !htk move RequestBuilding trait from akka.http.testkit into akka.http.clien package, closes #15801 2014-09-17 16:49:34 +02:00
Mathias
47affda004 !htp rename akka.http.routing package to akka.http.server 2014-09-17 16:42:31 +02:00
Björn Antonsson
a902d079b0 +pro #15406 Split up stream into testkit, tests and tck 2014-09-16 10:16:38 +02:00
Mathias
af8591b5e9 +htk Add akka-http-testkit as a port of spray-testkit
Currently the Specs2 support is still missing.
2014-09-11 17:14:19 +02:00