Commit graph

320 commits

Author SHA1 Message Date
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
Harit Himanshu
3c62888776 =doc add curl example to fileUpload docs 2015-12-03 12:57:37 +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
drewhk
b4fc3c11d8 Merge pull request #19026 from drewhk/wip-document-graphstage-drewhk
+str, doc: Documentation for GraphStage
2015-11-27 15:46:33 +01:00
Endre Sándor Varga
7acdda1d1f +str, doc: Documentation for GraphStage 2015-11-27 14:21:48 +01:00
Mathias
8fc02dd799 +htp add selectPreferredLanguage directive incl. docs 2015-11-27 12:52:53 +01:00
Konrad Malawski
301d1fd337 Merge pull request #18946 from johanandren/wip-16841-uploadedFile-directive-johanandren
Wip #16841 uploaded file directive
2015-11-24 22:33:35 +01:00
Konrad Malawski
fd5a3afc9d Merge pull request #18942 from ktoso/wip-customheaders-impr-ktoso
+htc #18898 modeledCustomHeader to ease matching on headers
2015-11-24 16:27:10 +01:00
Johan Andrén
3c0877d964 +htt 16841 uploadedFile directive
Two new directives for accepting file uploads through multipart forms:

`uploadedFile` which allows for very simple upload into a temporary file
`fileUpload` which allows to simply work with the stream of bytes of an upload
2015-11-24 16:21:25 +01:00
Konrad Malawski
35b690371f Merge pull request #19004 from ktoso/wip-jsonexamples-ktoso
=doc,htc better example docs on mapping error response to empty JSON …
2015-11-24 12:53:54 +01:00
Konrad Malawski
05ab43f824 =doc,htc better example docs on mapping error response to empty JSON body 2015-11-24 12:02:20 +01:00
Konrad Malawski
6f5d449bd0 +htc #18898 modeledCustomHeader to ease matching on headers 2015-11-24 12:01:26 +01:00
Roland Kuhn
ac9bcebb90 add insecure HTTPS client warning for Scala 2015-11-24 10:22:56 +01:00
Johan Andrén
af2bc368a2 =doc #18968 Document auth options for Java DSL 2015-11-19 17:55:50 +01:00
Johan Andrén
63806bdbe0 =doc #18857 Add docs about comparing the secret when authenticating 2015-11-19 11:26:11 +01:00
Konrad Malawski
8a33c22e8f =doc fixup due to validation having run before we merged in the rename 2015-11-18 16:20:38 +01:00
Konrad Malawski
00a7ecd1f0 Merge pull request #18893 from johanandren/wip-18471-metadata-plus-file-upload-johanandren
=doc WIP #18471 examples for file uploads
2015-11-18 14:33:10 +01:00
Konrad Malawski
a394e833bf Merge pull request #18924 from 2beaucoup/improve-tcp-doc
Show where connections are coming from in stream-io.rst
2015-11-18 12:01:12 +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
Johan Andrén
cd3a9ccf85 =doc 18471 Document file uploads 2015-11-16 14:17:56 +01:00
Konrad Malawski
7d4304fc6e Merge pull request #18888 from spray/wip-16468-mathias
+htp #16468 add `withSizeLimit` modifier to `HttpEntity`
2015-11-13 18:46:35 +01:00
Mathias
e142e928da =doc add chapter on HTTP message entity size limiting 2015-11-13 17:40:58 +01:00
2beaucoup
6ba1e481d3 =doc show where connections are coming from in stream-io.rst 2015-11-13 14:50:24 +01:00
Johan Andrén
c6500aec7f =doc 18878 Document gotcha about missing tilde 2015-11-09 16:21:04 +01:00
2beaucoup
7a1857d849 fix includecode 2015-11-09 10:46:57 +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
Konrad Malawski
b8575ec666 =doc #18715 migration guide for Query in Akka HTTP 2015-11-04 13:35:03 +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
1ce023ebc0 =htp #16962 docs for creating custom directives
Mostly ported from the spray docs
2015-10-26 14:53:25 -07:00
Roland Kuhn
0c78cca7ed !str #18674 remove FlowGraph.Builder.add(Sink|Source) 2015-10-26 12:31:17 +01: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
Roland Kuhn
dc07fd250c !str make Inlet/Outlet invariant and add Java variance
This necessitates the removal of method overloading in the Java Graph
DSL: the to() and via() methods were not otherwise resolved correctly by
javac, leading to incomprehensible error messages. The new approach is
to offer just one way of doing things which is a bit more verbose but
should be easier to read and learn. In this vein auto-importing while
using the DSL is also gone for Java—not sure about Scala yet.
2015-10-21 17:48:54 +02:00
Johan Andrén
0969b6263e RangeDirectivesExamplesSpec uncommented and working 2015-10-19 16:48:21 +02:00
Konrad Malawski
99158f515c Merge pull request #18727 from 2m/wip-coding-directives
=doc #18496 add scala docs for coding directives
2015-10-14 16:54:35 +02:00
Martynas Mickevicius
073c201e75 =doc #18496 add scala docs for coding directives 2015-10-14 16:33:51 +02:00