Commit graph

258 commits

Author SHA1 Message Date
Johannes Rudolph
10fb88e2bc =htp add more explicit type annotations to implicit definitions 2015-06-18 16:22:03 +02:00
Johannes Rudolph
b0ea8c935a !htp remove implicit ExecutionContext parameter where possible
It seems they were left over from aa8da46068795a1110ed3ce07cf648fedaf1000d.
2015-06-18 11:35:47 +02:00
Johannes Rudolph
1d5332a311 =htp add more tests for PathDirectives and fix test descriptions 2015-06-18 11:35:47 +02:00
drewhk
c59a176a84 Merge pull request #17506 from spray/w/16826-introduce-cookie-pairs
!htc #16826 introduce HttpCookiePair for usage in `Cookie`-header
2015-06-01 16:12:56 +02:00
Johannes Rudolph
b2e6b650fd !htc #16826 introduce HttpCookiePair for usage in Cookie-header 2015-05-28 12:43:45 +02:00
Johannes Rudolph
c417d727da =htp add explicit result types to formField/parameter implicits
Otherwise, the applicability of the implicit conversions can depend on
the order of compiler-internal loading/typing which is hardly predictable.
2015-05-22 14:37:21 +02:00
Endre Sándor Varga
be82e85ffc +str #17361: Unified http java/scala projects except marshallers 2015-05-22 13:51:34 +02:00
Mathias
5859c39f8b =ht* #17279 rename akka-http-* modules where agreed 2015-04-24 18:44:24 +02:00
Konrad Malawski
cebd9bf1ae +str #15588,#17229 Java 6 Synchronous File Sink / Source
These are synchronous implementations, because we need to be Java 6
  compatible while developing on 2.3.x. However asynchronous
  implementations using AsynchronousFileChannel will come soon for JDK7
  users.

+ ActorPublisher/Subscriber now manage stopping of the actor
+ added documentation on configuring dispatcher for File IO
+ properly handle if source file does not exist
+ file sink / source come with default io dispatcher
> verified no actors are leaking
> exceptions are caught and onErrored properly
+ moved files to akka.stream.io
+ Added OutputStreamSink and InputStreamSource
2015-04-23 18:15:10 +02:00
Mathias
4d3b0e4edc +htc, htp: small improvement to HttpMessage::withDefaultHeaders 2015-04-23 15:31:51 +02:00
Johannes Rudolph
cd87dadf54 +htp #16887 add simple websocket support directive to akka-http 2015-04-22 13:57:32 +02:00
Johannes Rudolph
7b72fca3c2 +htc introduce big endian read methods to ByteReader 2015-04-21 15:23:37 +02:00
Mathias
a4c279c9c5 !htc #17039, #16933 change default materialization placeholder type from Unit to Any 2015-04-10 15:10:42 +02:00
Roland Kuhn
8f47b6dfcc Merge pull request #17105 from akka/wip-async-stage-∂π
add async stage
2015-04-10 10:52:01 +02:00
Roland Kuhn
4c623fade7 !str #17090 add AsyncStage 2015-04-10 09:00:36 +02:00
Patrik Nordwall
666bfade1e !str #16993 Separate scaladsl/javadsl for FlattenStategy
`abstract class FlattenStrategy` was used in both javadsl and scaladsl, but the concrete concat
for the javadsl was in javadsl.FlattenStrategy and the concrete concat for the scaladsl is in
stream.FlattenStrategy.

Now there are separate FlattenStategy in scaladsl and javadsl packages and conversion
as we have in other places.

* replace JavaConverters with explicit methods

* remove asJava/asScala for FlattenStrategy
2015-04-10 08:05:24 +02:00
Roland Kuhn
ad4396a561 Merge pull request #17103 from spray/wip-16803-mathias
!htc #16803 introduce proper model for type of media-type encoding specs
2015-04-09 16:58:19 +02:00
Roland Kuhn
6949b8d167 Merge pull request #17111 from spray/wip-15792-mathias
=htp #15792 make `entityAs` directive turn `IllegalArgumentException` into `ValidationRejection`
2015-04-09 16:40:14 +02:00
Mathias
5074aebfeb !htc #16803 introduce proper model for type of media-type encoding specs 2015-04-08 16:02:54 +02:00
Mathias
612fc052e6 =htp #15792 make entityAs directive turn IllegalArgumentException into ValidationRejection 2015-03-31 11:48:27 +02:00
Mathias
0925a23be5 =htp #17082 fix response message generated for MethodRejection 2015-03-30 10:55:41 +02:00
Patrik Nordwall
add5f39d18 Merge pull request #17047 from spray/wip-16816-mathias
+htp #16816 Add variants of `conditional` directive taking only ETag or only Last-Modified value.
2015-03-27 11:30:21 +01:00
Roland Kuhn
4a7814af91 Merge pull request #17001 from spray/wip-16988-mathias
!htc #16988 hide model.parser.HeaderParser from public API, add proper `HeaderParser.parse`
2015-03-24 11:13:31 +01:00
Mathias
85edf72d70 +htp #16816 Add variants of conditional directive taking only ETag or only Last-Modified value 2015-03-17 14:45:02 +01:00
Patrik Nordwall
3dc4e6d077 !str #16992 Rework Source and Sink name parameter
* Remove name parameter (no overloads), naming is performed using `.withAttributes` or the new
  convenience `.named`. Those adds the OperationAttribute.Name and also change the name of the
  shape Inlet and Outlet.

* Remove Source/Sink parameter list for 0 parameter methods,
  this allows usage of `Sink.head` instead of `Sink.head()`
2015-03-06 09:24:00 +01:00
Mathias
6352fbae81 !htc #16988 hide model.parser.HeaderParser from public API, add proper HeaderParser.parse 2015-03-05 11:36:30 +01:00
Mathias
ef208bfa8b =htp #16934 s/ActorFlowMaterializer/FlowMaterializer where possible, smaller cleanups 2015-03-02 13:52:09 +01:00
Mathias
ef34319987 =htc,htp Small fix in scaladoc, add FIXME reminder 2015-03-02 13:52:06 +01:00
Roland Kuhn
70c6c1a246 Merge pull request #16949 from spray/wip-16835-mathias
Refactor akka.http.server.RejectionHandler
2015-02-27 14:11:52 +01:00
Roland Kuhn
fbe80f2b1f Merge pull request #16919 from spray/wip-16814-mathias
=htp #16814 Fix ClassCastException in `PathMatchers.NumberMatcher`
2015-02-27 14:10:33 +01:00
Mathias
63c622d6c7 !htp #16833 Add minimum number of iterations to PathMatcher::repeat modifier
Note: this breaks existing code using `Segments(n)` or `xxx.repeat(n)` because the semantics of these
calls change with this commit.
2015-02-27 09:57:44 +01:00
Mathias
7510ec80a4 !htp Refactor ExceptionHandler infrastructure for symmetry with RejectionHandler 2015-02-27 09:49:15 +01:00
Mathias
9c3124f344 !htp #16835 Refactor RejectionHandler infrastructure for cleanliness and independence from rejection ordering 2015-02-27 09:49:10 +01:00
Endre Sándor Varga
8d77fa8b29 !str #16902: Unify stream internal representation
also =str #16912: Fix StreamTcpSpec flakiness
2015-02-26 10:06:56 +01:00
Mathias
f869d6ccbc =htp #16814 Fix ClassCastException in PathMatchers.NumberMatcher
Direct port of 43bb625bbd
2015-02-23 12:47:27 +01:00
2beaucoup
ada5922440 !htp #16593 negotiate content encoding 2015-02-18 09:28:15 +01:00
2beaucoup
76cf157912 +htp improve naming consistency + cleanup 2015-02-17 17:10:36 +01:00
Konrad Malawski
39038597b2 !str #16563 terminal operations start with run*; runFold runForeach 2015-01-26 15:39:36 +01:00
Johannes Rudolph
fd8e0225eb +htp #16516 allow setting maximum ByteString chunk size for decoding operations 2014-12-22 10:16:58 +01:00
Johannes Rudolph
29d7a041f6 +htp #16516 rewrite Deflate/GzipDecompressor as StatefulStage to defuse zip bomb
Also, the tests have been DRY'd up.
2014-12-22 10:08:03 +01:00
André Rüdiger
49e6c0c066 tidy up once more 2014-12-21 01:11:45 +01:00
2beaucoup
ec7156698a !htc #16494 provide content negotiation fallback to exception handlers 2014-12-20 18:12:28 +01:00
2beaucoup
a1d7c33663 =htc simplify content negotiation 2014-12-20 18:08:38 +01:00
2beaucoup
d5d8c21091 =htc optimize copy shortcuts 2014-12-20 18:08:38 +01:00
Jisoo Park
e785c374b3 +htp #16543 add directives to add or remove trailing slash 2014-12-20 17:38:28 +01:00
Mathias
44a684c390 !htc clean up and unify HTTP exception model 2014-12-18 17:12:17 +01:00
Martynas Mickevicius
64feb041be =str #15152 operation transformations 2014-12-01 20:07:55 +02:00
Johannes Rudolph
1389c59196 +htp add ToNameReceptacleEnhancements companion object 2014-12-01 16:19:32 +01:00
Johannes Rudolph
c3d741c07d +htp smaller improvements in FileAndResourceDirectives
- in getFromResourceDirectory allow specification of classLoader
 - quick constructor for ContentTypeResolver
 - allow overriding of `defaultClassLoader` choice
2014-12-01 16:19:32 +01:00
Johannes Rudolph
2a37831937 +htp add shortcuts for quick encoding / decoding 2014-12-01 16:19:32 +01:00