=doc fix typo in host-level http docs

This commit is contained in:
Konrad Malawski 2015-07-19 21:30:54 +02:00 committed by Konrad Malawski
parent c6cc3215c6
commit f48a69f01d
2 changed files with 4 additions and 4 deletions

View file

@ -34,7 +34,7 @@ public class HttpClientExampleDocTest {
final Future<HttpResponse> responseFuture =
Source.single(HttpRequest.create("/"))
.via(connectionFlow)
.runWith(Sink.head(), materializer);
.runWith(Sink.<HttpResponse>head(), materializer);
//#outgoing-connection-example
}
@ -58,7 +58,7 @@ public class HttpClientExampleDocTest {
Source
.single(Pair.create(HttpRequest.create("/"), 42).toScala())
.via(poolClientFlow)
.runWith(Sink.head(), materializer);
.runWith(Sink.<Tuple2<Try<HttpResponse>, Integer>>head(), materializer);
//#host-level-example
}

View file

@ -46,7 +46,7 @@ back ``3`` different client flow instances for the same pool. If each of these c
(concurrently) the application will have 12 concurrently running client flow materializations.
All of these share the resources of the single pool.
This means that, if the pool's ``pipelining-limit`` is left at ``1`` (effecitvely disabeling pipelining) (effecitvely disabeling pipelining), no more than 12 requests can be open at any time.
This means that, if the pool's ``pipelining-limit`` is left at ``1`` (effecitvely disabeling pipelining), no more than 12 requests can be open at any time.
With a ``pipelining-limit`` of ``8`` and 12 concurrent client flow materializations the theoretical open requests
maximum is ``96``.
@ -144,4 +144,4 @@ all pools have terminated.
Example
-------
.. includecode:: ../../code/docs/http/javadsl/HttpClientExampleDocTest.java#host-level-example
.. includecode:: ../../code/docs/http/javadsl/HttpClientExampleDocTest.java#host-level-example