Commit graph

163 commits

Author SHA1 Message Date
Endre Sándor Varga
b478d70964 !str #19137: Rename inlet and outlet to in and out on Flow/Source/SinkShape 2015-12-15 16:49:52 +01:00
Roland Kuhn
1500d1f36d !str #19005 make groupBy et al return a SubFlow
A SubFlow (or SubSource) is not a Graph, it is an unfinished builder
that accepts transformations. This allows us to capture the substreams’
transformations before materializing the flow, which will be very
helpful in fully fusing all operators.

Another change is that groupBy now requires a maxSubstreams parameter in
order to bound its resource usage. In exchange the matching merge can be
unbounded. This trades silent deadlock for explicit stream failure.

This commit also changes all uses of Predef.identity to use `conforms`
and removes the HTTP impl.util.identityFunc.
2015-12-10 12:27:16 +01:00
Mathias
899b92faf2 !htp #19034 refactor content negotiation, upgrade to new MediaType / ContentType model 2015-12-04 13:32:01 +01:00
Roland Kuhn
073e7058dc !str #15089 add flatMapMerge 2015-12-02 09:01:20 +01:00
Roland Kuhn
f00da4daac !str #19037 rename FlowGraph to GraphDSL 2015-12-01 18:30:07 +01:00
Johan Andrén
457a17db84 =doc #18917 remove old API mentions from the docs 2015-11-30 13:52:01 +01:00
Endre Sándor Varga
99d8773592 +str, doc: Fix small issues in GraphStage docs 2015-11-30 12:18:47 +01:00
Endre Sándor Varga
7acdda1d1f +str, doc: Documentation for GraphStage 2015-11-27 14:21:48 +01:00
Roland Kuhn
401dbdee9c add insecure HTTPS client warning for Java 2015-11-24 10:23:20 +01:00
Konrad Malawski
6a5cc92df7 =doc #18972 fix typo in docs on oauth2 2015-11-20 11:13:34 +01:00
Johan Andrén
af2bc368a2 =doc #18968 Document auth options for Java DSL 2015-11-19 17:55:50 +01:00
Viktor Klang
8780ba28a4 !str - Moving the InputStream and OutputStream utilities into Source and Sink 2015-11-18 09:13:57 +01:00
Viktor Klang
20c996fe41 !str - 18916 - Source.file and Sink.file
* Removes `Synchronous` from the names and descriptions of File I/O as it leaks impl details
* Removes the factries for FileSource and FileSink and puts them in Source and Sink respectively
2015-11-17 09:50:10 +01:00
drewhk
2f1ef278a5 Merge pull request #18847 from ktoso/wip-migration-rawquery-ktoso
=doc #18715 migration guide for Query in Akka HTTP
2015-11-04 14:20:59 +01:00
drewhk
e2b98da865 Merge pull request #18842 from ktoso/wip-add-of-ktoso
+str #18840 add of method to predefined Shapes, for nicer Java use
2015-11-04 13:56:01 +01:00
Konrad Malawski
b8575ec666 =doc #18715 migration guide for Query in Akka HTTP 2015-11-04 13:35:03 +01:00
Konrad Malawski
d06fe01e4a +str #18840 add of method to predefined Shapes, for nicer Java use 2015-11-04 13:00:32 +01:00
Viktor Klang
6cfa4df800 !str - Switches Sink.publisher to use a boolean to indicate fanout rather than a number of allowed subscribers 2015-11-04 12:29:23 +01:00
Viktor Klang
f839a1f85d !str - 18808 - Removes Sink.fanoutPublisher and makes Sink.publisher specify number of subscribers
Sink.publisher now takes a max number of Subscribers and
the elasticity between concurrent Subscribers.
2015-11-04 12:29:07 +01:00
Martynas Mickevičius
ee5ec72552 =str #15707 name unnamed modules
* give name attribute to TickSource and nested modules
* reflow module toString output
* give toString to flow
2015-11-04 13:01:05 +02:00
drewhk
757aafb112 Merge pull request #18838 from akka/wip-flatConcat-√
!str - replaces flattenConcat with flatMapConcat
2015-11-04 10:58:11 +01:00
2beaucoup
8f75c97e47 !htp #18479 defer parsing of query key-value-pairs 2015-11-03 23:19:44 +01:00
Viktor Klang
50c6f2267c !str - replaces flattenConcat with flatMapConcat 2015-11-03 22:17:28 +01:00
Endre Sándor Varga
82e1d3dcec +doc 18737: Code snippets for migration guide (Java) 2015-11-03 16:01:43 +01:00
Endre Sándor Varga
100fc83a3d +doc 18737: Code snippets for migration guide (Scala) 2015-11-03 13:57:55 +01:00
Endre Sándor Varga
8e62c0d9d7 +str 18735: Added keepalive inject and initial delay ops
Also, improved documentation of timeout operations
Added missing Java DSL smoke tests
2015-11-03 10:49:43 +01:00
Roland Kuhn
556012b7ee !str,htc replace and remove OneBoundedInterpreter
main work by @drewhk with contributions from @2m and @rkuhn

This work uncovered many well-hidden bugs in existing Stages, in
particular StatefulStage. These were hidden by the behavior of
OneBoundedInterpreter that normally behaves more orderly than it
guarantees in general, especially with respect to the timeliness of
delivery of upstream termination signals; the bugs were then that
internal state was not flushed when onComplete arrived “too early”.
2015-11-01 14:53:52 +01:00
Alexander Golubev
8ea52a6bb4 +str #17338 add OutputStreamSource and InputStreamSink 2015-10-28 11:22:32 -04:00
Johan Andrén
19c8e557ba =htp #18661 effectiveUri in Java testkit
Java testkit now uses effectiveUri to behave just like the Scala testkit so that
the host header and path is joined. This allows for test calls that use just a relative
URI.
2015-10-24 13:47:25 +02:00
Viktor Klang
f29d7affbd !str #18692 javadsl.FlowGraph.Builder.add()
* also make factories more consistent by only offering
  FlowGraph.create()
* also remove secondary (edge-based) FlowGraph.Builder DSL
* also improve naming for conversions from Graph to
  Source/Flow/BidiFlow/Sink
2015-10-22 19:10:00 +02:00
Roland Kuhn
02810cfa64 !str,htc remove FlexiMerge/Route
- replace all occurrences with equivalent GraphStage implementations

This commit introduces a mini-DSL for GraphStage that allows emitting or
reading multiple elements to/from a port with one statement, installing
stateful handlers on the port to make it work. The emitting side allows
stacked continuations, meaning that while an emit() is ongoing (waiting
for demand) another one can be added to the queue; this allows
convenient formualation of merge-type stages.
2015-10-21 18:52:16 +02:00
Konrad Malawski
cddb1ade40 =htc,doc #18496 make all directive docs have the same style, some
additions
2015-10-12 02:12:26 +02:00
Konrad Malawski
2927568225 +doc,htp #18496 file directives docs 2015-10-12 02:05:29 +02:00
Konrad Malawski
4e7999cf0a +htc,doc #18657,#18665 FormData javadsl and FormField docs 2015-10-08 16:50:21 +02:00
Konrad Malawski
a17604500f =doc,htp #18657 document FormField vals 2015-10-08 13:01:25 +02:00
Konrad Malawski
27eba7ffa3 =doc,htp #18657 document Headers request values 2015-10-08 13:01:25 +02:00
Patrik Nordwall
3081893bfd =doc #18657 Doc host and path directives
* also including docs of RequestVals.matchAndExtractHost
  and RequestVals.matchAndExtractHost
* and add Host.create factory methods
* add missing HttpRequest PATCH and OPTIONS
* change to val in matchAndExtractHost for
  fail fast exception
2015-10-08 11:50:41 +02:00
Konrad Malawski
de9262ab8a Merge pull request #18627 from ktoso/wip-directives-bonanza-ktoso
Akka HTTP Directives Documentation Bonanza
2015-10-07 10:47:15 +02:00
Konrad Malawski
7f883a8b16 +htp #18496 add missing directive documentation (scala) 2015-10-07 10:46:11 +02:00
Konrad Malawski
452bbe03fe +doc,htc #18610 document using singleRequest in Actors 2015-10-06 13:01:58 +02:00
Konrad Malawski
f9909d79ab Merge pull request #18562 from ktoso/wip-illegal-headers-warning-bad-ktoso
=htc #18533 make configuration of parsing less confusing
2015-10-06 10:40:06 +02:00
Konrad Malawski
9bd11620f0 +htc add popular ContentType instances for convenience 2015-10-02 11:19:14 +02:00
Konrad Malawski
573a69e2b9 +doc,htc #18600,18597 documents where/how to deal with failure in Http 2015-09-29 23:10:00 +02:00
Konrad Malawski
2f2e07666e +htc,java #18600 Add missing convenience ContentTypes class 2015-09-29 20:58:47 +02:00
Konrad Malawski
239b4ca268 Merge pull request #18517 from agolubev/agolubev-#18378-small-typos-in-stream-docs
=str #18378 Small typos in Streams docs
2015-09-28 12:51:40 +02:00
Konrad Malawski
cad852025d Actually implement proper cascading 2015-09-25 16:04:44 +02:00
Roland Kuhn
68ba0643d6 =str,htp clean up build warnings
- explicitly provide Unit values and place parens around tuple creation
- remove structural type usage in TestUtils
- fix Java double-casts
- use unused Java values by asserting their non-nullness
- work around inability to place case class in trait (scripted test)

The remaining warnings about using private types in public methods are
bogus as reported in https://issues.scala-lang.org/browse/SI-9490.
2015-09-25 15:20:23 +02:00
Konrad Malawski
b1f9f77a17 =htc #18533 make configuration of parsing less confusing 2015-09-25 13:53:23 +02:00
Alexander Golubev
8070aa0b24 =str #18378 Small typos in Streams docs
very small fix
2015-09-18 12:30:34 -04:00
Alexander Golubev
c066ce4a8a =str #18378 Small typos in Streams docs 2015-09-18 10:02:09 -04:00