Commit graph

303 commits

Author SHA1 Message Date
Johannes Rudolph
9ad814209a =htp #16289 in handleException also catch strict exceptions during route building or execution 2014-11-18 12:12:58 +01:00
Viktor Klang
db4e5c4a29 =str - Various Flow and FlowMaterializer improvements
- Switches from using size-of-1/2 Vectors to using Lists
  - Fixes an issue where processorForNode wouldn't use the dispatcher form the settings
  - Adds a dedicated Collect fusion op
  - Adds various simplifications to ActorBasedFlowMaterializer
  - Adds FIXMEs where appropriate
  - Switches `grouped` to use a VectorBuilder
  - Adds support for `scan`
  - ActorBasedFlowMaterializer now uses Iterator instead of head+tail decomp on Seqs
  - Identity and Completed Transformers are now cached
  - Adds dedicated AstNodes for all combinators
  - Adds a hook-in point for fusion in `ActorBasedFlowMaterializer`
  - Adds support for `Operate` an AstNode with a function that create a fusing.Op
  - Adds experimental and slow optimizer as a PoC
  - Adds verification that Ast.Fused does not exist in optimizer input
2014-11-17 17:45:48 +01:00
Johannes Rudolph
188cbabefe +htp #15922 import FileAndResourceDirectives from spray 2014-11-12 08:19:00 +01:00
Johannes Rudolph
840feb42ea =htp #16238 fix RangeDirectives not to assume reusable entity data stream 2014-11-12 08:18:59 +01:00
Patrik Nordwall
65269274b1 !str #16235 Rename Sink.future to Sink.head 2014-11-07 08:07:17 +01:00
Björn Antonsson
b0a5afb623 Merge pull request #16205 from spray/w/15656-fine-grained-dependencies
http: #15656 #15917 split out and provide glue layers for scala xml and spray-json support
2014-11-05 11:22:44 +01:00
Björn Antonsson
04385f4d91 Merge pull request #16195 from spray/w/15930-RangeDirectives
+htp #15930 import RangeDirectives from spray
2014-11-05 10:54:33 +01:00
Johannes Rudolph
2ea790d9f0 +pro #15917 provide SprayJsonSupport in akka-http-spray-json project
This will serve as an example of how to provide similar glue layers for
other JSON libraries.
2014-11-04 15:58:08 +01:00
Johannes Rudolph
2941a55401 !htp #15656 split out scala-xml support into its own subproject 2014-11-04 15:54:10 +01:00
Johannes Rudolph
a2bce26fd7 +htp #15930 import RangeDirectives from spray 2014-11-04 15:24:52 +01:00
Björn Antonsson
c6ab4c74ba Merge pull request #16179 from spray/w/15933-import-security-directives
+htp #15933 import SecurityDirectives (+ infrastructure) from spray
2014-11-04 10:50:53 +01:00
Patrik Nordwall
59a3d0c450 Merge pull request #16208 from spray/w/15920-DebuggingDirectives
=htp #15920 fix test-case broken because of merge conflict
2014-11-03 18:34:16 +01:00
Johannes Rudolph
30c5bea6ff =htp #15920 fix test-case broken because of merge conflict 2014-11-03 16:44:43 +01:00
Johannes Rudolph
dad5e568cd +htp #15933 import + improve SecurityDirectives (+ infrastructure) from spray 2014-11-03 16:27:38 +01:00
Björn Antonsson
96ba0d07e5 Merge pull request #16158 from spray/w/15920-DebuggingDirectives
+htp #15920 import DebuggingDirectives from spray
2014-11-03 16:07:12 +01:00
Mathias
4682f5ddb2 !htp #15674 upgrade to new Multipart model 2014-11-03 10:13:26 +01:00
Johannes Rudolph
4b05824730 +htp #15920 import DebuggingDirectives from spray 2014-10-31 11:46:18 +01:00
Björn Antonsson
f04ed7f8a9 Merge pull request #16157 from spray/w/RequestContext-withChangedSettings
http: make RoutingSettings a property of the RequestContext
2014-10-30 17:30:38 +01:00
Johannes Rudolph
85ca3e6853 !htp consistently prefix simple extraction directives with extract 2014-10-28 14:33:26 +01:00
Patrik Nordwall
7c0c618791 !str #16039 Remove old scaladsl, rename scaladsl2
* and impl2, testkit2
* keeping io2 for now
2014-10-28 14:20:19 +01:00
Björn Antonsson
789b7c843d Merge pull request #16108 from spray/w/port-more-directives
Fixes for 15931, 15918, 15919
2014-10-21 17:28:36 +02:00
Johannes Rudolph
8116d2b9bb +htp #15919 import CookieDirectives 2014-10-21 15:56:31 +02:00
Johannes Rudolph
37da572d2d +htp #15918 import CacheConditions from spray 2014-10-21 15:56:30 +02:00
Benjamin Thuillier
c6f8eb95a1 +htp #15931 Import RespondWithDirectives from spray 2014-10-21 15:56:30 +02:00
Mathias
0033e74cae !htp #16101 improve basic directive infrastructure, add more scaladoc, fix smaller problems 2014-10-21 14:12:01 +02:00
Mathias
9211b71c99 +htp #15929 port ParameterDirectives from spray 2014-10-21 14:12:01 +02:00
Mathias
33ddabbc9f =htp refactor tuple join to foldLeft-based implementation, unify tuple operations 2014-10-21 14:12:01 +02:00
Mathias
3fbe736960 =htp enable tests that were erroneously disabled due to specs2 -> scalatest copy-pasta 2014-10-21 14:12:01 +02:00
Mathias
129958d039 =htp add support infrastructure for folding over tuples with a binary poly-function 2014-10-21 14:12:00 +02:00
Björn Antonsson
bca586a7dd Merge pull request #16091 from spray/w/15924-future-directives
+htp #15924 import FutureDirectives from spray
2014-10-21 13:42:49 +02:00
Johannes Rudolph
5870c4ab90 +htp #15924 import FutureDirectives from spray 2014-10-21 11:12:10 +02:00
Björn Antonsson
0f61909ea7 !str #16102 Fold Tap/Drain into Source/Sink
* Fold Tap/Drain into Source/Sink
* Create Source/Sink helpers to create all Sources/Sinks
* Make concrete Source/Sink implementations private[scaladsl2]
2014-10-17 14:05:50 +02:00
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
2178e6a373 =htp #16063 fail on data truncation for GZIP coding 2014-10-10 16:52:15 +02:00
Johannes Rudolph
6170655b19 =htp #15921 import CodingDirectives from spray 2014-10-10 16:52:15 +02:00
Johannes Rudolph
13fb925fe9 =htp #16064 fail properly and early if Gzip header is corrupt 2014-10-10 16:39:28 +02:00
Endre Sándor Varga
ed27f86791 !htc #15726: Akka HTTP with the new DSL 2014-10-10 13:51:36 +02:00
Björn Antonsson
a47fee4fda Merge pull request #15982 from bthuillier/release-2.3-dev
+htp #15932 Import SchemeDirectives from spray
2014-10-09 22:41:45 +02:00
Benjamin Thuillier
0966bf6233 +htp #15932 integrate SchemeDirectives from spray codebase 2014-10-09 17:11:33 +02:00
Björn Antonsson
7cc9e9902f Merge pull request #15985 from bthuillier/feature/directives-migration
Spray Directives Migration
2014-10-09 13:46:50 +02:00
Mathias
950a81be8e =htp add one more test 2014-10-08 13:42:01 +02:00
Benjamin Thuillier
b98f21cb80 +htp #15928 Import MiscDirectives from spray 2014-10-07 14:08:31 +02:00
Benjamin Thuillier
6ad7622621 +htp #15925 Import HeaderDirectives from spray 2014-10-07 14:05:12 +02:00
Mathias
46d51e531f =htp reduce set of not-encoded characters in FormData marshalling
Port of https://github.com/spray/spray/pull/918
2014-10-07 12:02:13 +02:00
Mathias
27c5167e73 =htp small simplification in tests 2014-10-06 10:42:01 +02:00
Mathias
f7d7a289f3 =htp fix UnsupportedOperationException in PathMatchers.valueMap2PathMatcher 2014-10-06 10:41:54 +02:00
Johannes Rudolph
fb98d1aa69 +htp #15910 import + improve coding infrastructure from spray 2014-10-02 15:22:06 +02:00
Benjamin Thuillier
a2bcc0fb06 +htp #15926 Import HostDirectives from spray 2014-09-26 11:39:03 +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