* #20466 file upload - first example test done
* #20466 second test from FileUploadDirectivesExample passing in Java
* #20466 FileUploadDirectives examples file rename plus docs
* #20466 post-review changes - adding better JAVA Multipart API
* #20466 Multipart Java conversions fix and added spec for the Java side of the model
* =htc #20789 fix double push of requestPrepOut in HTTP blueprint
* =htc simplify fix, can pull eagerly but under this condition
* =htc make early response a single line
* 20456: add hot connection pool via the minConnections setting
* added the akka.http.host-connection-pool.min-connections setting to reference.conf
* modified config implementation s o it's being read, with 0 as default
* based on the setting two types of pools will be created - hot and cold
* hot ones will start ASAP and not close when the number of active connections fall to 0
* PR remarks: english, remove getIntOpt ...
Moving logic into PoolConductor WIP
* WIP: moving minConnections logic into PoolConductor, needs more precise tests
* added testing via expectNextN in ConnectionPoolSpec.scala; fixed the bug with skipping the actor state in PoolSlot
* fix comments from PR: make sure PoolConductor produces only SwitchSlotCommand
* fix typo: slotSettings -> slots
* Fix style after code review
- inline short snippets
- shorter Mima
- better naming
- make SlotCommands final
Pass in an unresolved InetSocketAddress to ensure that each new
TcpOutgoingConnection will perform DNS resolution.
This prevents a connection pool from always using the same IP address for a host
even if the DNS mapping changes (e.g. in a failover).
* !htt #18919#19519 Align Java HTTP server DSL with Scala
This commits replaces the Java HTTP server DSL with a Java-8 centric one
which exposes all scala DSL concepts to be usable from Java, including
custom directives, (un)marshallers, rejections, headers, and type safety
for path and query parameters.
* Add RequestContext and RouteResult to Java DSL
fix websockets
WIP bring java docs up to date.
This applies some updates to the root-level documentation
* [htp] Fix java documentation to correctly mention timeouts
Timeouts are configured the same in Java and Scala. Hence, linking to the
scala docs for timeouts from Java.
* =htc fix optionalHeaderValueByType in Java
* =htt #20200 fix java testkit always using NoLogging instead logger
* +htt actually run new javadsl tests, allow overriding config
* =htt improve javadsl test infra with more details when fails
* =htt fix bug in wrong path matcher exposed
* +htp add missing remaining path matcher
* =htp Java DSL cookie tests fixed
* =htt Java DSL ParameterDirectivesTest fixed
Protect the tweets from scalariform
Incorrect response expectations in cache condition directives spec fixed
* =htt Path directives for Java DSL
* +!htt PathMatchers rewritten, made uniform and tests passing
* Bugfix in java reject and a little test-boyscouting
* Revert "Incorrect response expectations in cache condition directives spec fixed"
This reverts commit cd50e89d45db010309f8249b090ea654ebb11c7a.
* +htc HttpAPIsTest is compile time only, not for running
Also, moved from the client package since not strictly a client test.
SecurityDirectives passing
Two faulty tests and two actual bugs.
Fix for cache condition spec not working
* Not sending in Unit instad of the implicit magnet in the test
* HeaderMagnet now works as expected
* Java API added for - and + on DateTime
PetStore example and test fixed
* Annotations to make marshalling work without default constructor
* Made model class immutable
Incorrect tests fixed
Some scaladoc boyscouting as bonus
* =htt RequestValTest sprinkled out across multiple directive tests
Client ip extraction test with incorrect header name fixed.
* =htt Incorrect CodingDirectivesTest fixed.
* =htt Bugfix for Java Unmarshaller.firstOf and fixes to JavaRouteTest
* =htt MarshallerTest fixed
* Missing seal signature added to JavaDSL
* More consistent (with Scala) test kit setup for Java
* missing Javadocs added
* Thread.sleep in default exception handler removed
* =htt copy directive docs, prepare for finishing it up
* +htt SecurityDirectives.authorize variants and test coverage added
* +htt Custom headers in Java DSL
* =htt WIP on java docs
* +htp add missing parameterOrDefault directive
Fixed a lot of doc warnings
* =htc intense progress on javadsl docs
* =htc #20470 Link to issue about docs and fix compile error
compile, migration guide
don't mima check http-experimental
* =htt Java DSL doc warnings fixed.
Only `Could not lex literal_block` ones left now
* =htc fix mima settings
* =doc fix MethodDirectives doc test with custom method
* =htc fix coding directives spec after bad merge
* =htc fix concat being corresponding to route() in javadsl
* =htt Disable consistency check for route/concat as it fails only on ci server
* !htt Minor fixes to PathMatchers
* minor fixes
* remove now superfluous buffer from MultipartUnmarshaller
* remove unused TokenSourceActor
* remove FIXME: add tests, see #16437
* removed unused param remoteAddress (comment: TODO: remove after #16168 is cleared)
* convert FIXME to TODO (#18709)
* reenable tests in {Request|Response}RendererSpec due to fixed#15981
* remove logging workaround in StreamTestDefaultMailbox due to fixed#15947
* Expire defaults when HTTP-date is not possible to parse (#20362) and 'If-Modified-Since' is more strict (excluding 0 - rfc 7232 3.3).
* Fixed reversed missing method MiMa problem (#20131) and 'expires' instead of 'expire' wording.
* HTTP-date should match '0' as DateTime.MinValue after all.
* Rewrite the pool gateway synchronization
Rewrite the pool gateway synchronization so that:
- The documented race condition in PoolInterfaceActor is gone. No
PoolInterfaceActor will receive new requests after the gateway
shutdown has been initiated (fix#20081).
- A gateway created using newHostConnectionPool will no longer
share its pool with others even when it has been shutdown
due to idle-timeout and recreated. Also, its original
materializer will be used to create all the successive
pools incarnations (fix#20080).
- Collapsing chains of gateways do no longer need to be created.
The gateways are now only an entrypoint to the pool master
actor, and this actor is in charge of keeping a cache of
currently active pools and recreate them from the information
given by the gateway when needed.
* Add copyright header
* Mark PoolMasterActor as INTERNAL API
* Larger outer timeout
* Define Props in PoolMasterActor object
* Comment INTERNAL API
* Remove unused import