Commit graph

303 commits

Author SHA1 Message Date
Johan Andrén
e20d6f5f36 More generous timeout directive spec timeout #20278 2016-08-30 15:04:21 +02:00
dyk
0e302d2236 =htp Extract RemoteAddress.Unknown when cannot find client ip (#21289)
* handle unknown client ip

* updated doc

* fixed java dsl test
2016-08-26 15:47:36 +01:00
Endre Sándor Varga
5e830323f6 Updating to ScalaTest 3.0.0 and ScalaCheck 1.13.2 2016-08-22 11:13:49 +02:00
2beaucoup
0ed4a2aae9 =htp clean up json stream unmarshalling (#21233) 2016-08-19 16:21:33 +02:00
Richard Imaoka
d1a9049fa0 Add samples to run HTTP and HTTPS servers in the same app #18551 (#21079) 2016-08-05 16:11:59 +02:00
Konrad Malawski
9cc32c3aba +htp #18837 completely rewrite EntityStreamingSupport
added CSV examples
updated docs
EntityStreamingSupport is now an entry point, to all streaming things
both read and write side use it
it's easy to extend as well
2016-08-02 15:27:21 +02:00
Konrad Malawski
6562ddd2df =htp address review feedback on JSON streaming 2016-08-02 15:27:21 +02:00
Konrad Malawski
c3308149be +htp #18837 allow as[Source[Tweet, NotUsed]] 2016-08-02 15:27:21 +02:00
Konrad Malawski
c76ec2ac15 +htp #18837 more docs and final cleanups, complete java docs 2016-08-02 15:27:21 +02:00
Konrad Malawski
db880a3db0 +htp #18837 implemented JavaDSL for Source streaming 2016-08-02 15:27:21 +02:00
Johan Andrén
5dc0db2112 =htc Http server latency multi node spec array and source routes unmixed (#21086) 2016-08-01 18:34:30 +02:00
Johan Andrén
74243a28f8 Additional JavaDSL package structure and docs #20945 2016-07-29 16:42:40 +02:00
Hawstein
3cfb6f9d91 align package structure in http javadsl 2016-07-29 16:42:28 +02:00
Ian Clegg
f33f2197b6 =htc #20786 Fix for RFC 7235 so HttpChallenge only renders the realm when it has a value (#21043) 2016-07-28 13:32:50 +02:00
Konrad Malawski
5fd0654000 Jenkins benchmarking improvements (#21034)
* +htp,ben HttpBlueprint benchmark

* =htp hide http perf test behind a flag

* =htp report requests per second as well as bytes per second in perfspec
2016-07-25 18:39:52 +02:00
Konrad Malawski
fde9d86879 ByteString optimisations of methods in HTTP parsing hot-path (#20994)
* =act #20992 prepare benchmarks for ByteString optimisations

* =act #20992 optimise common ByteString operations: drop,take,slice...

* =act,htc #15965 add ByteString.decodeString(java.nio.charsets.Charset)
2016-07-20 14:01:51 +02:00
Konrad Malawski
a75c3f7bf1 Update AkkaHttpServerLatencyMultiNodeSpec.scala (#20980) 2016-07-18 10:53:53 +02:00
Konrad Malawski
3f12509f27 =htp attempt to fix PR validation issue, unable to reproduce (#20975) 2016-07-17 20:06:22 +02:00
Konrad Malawski
e986989bfa =htp fix typo in latency spec using AB (#20965) 2016-07-15 19:19:53 +02:00
Konrad Malawski
218f81196c =htp multinode latency spec for HTTP (#20964) 2016-07-15 18:53:13 +02:00
Nikolay Donets
b7567a5c55 Nikdon 20535 check same origin (#20962)
* =htp checkSameOrigin shows allowed origins

add HttpOriginRangeDefault into the javadsl and refactor

resolving binary compatibility + add copyright

return back public static final in the HttpOriginRange

* =htp #20535 address bin compat issues in checkSameOrigin PR
2016-07-15 13:39:40 +02:00
Konrad Malawski
7ef1b78ae7 +write http throughput results if asked to (#20958) 2016-07-14 17:47:56 +02:00
Konrad Malawski
6078fe44ee dsable fuzzer in Http Throughput spec (#20957) 2016-07-14 16:53:41 +02:00
Konrad Malawski
e08958322a +htp akka http Throughput benchmark, for jenkins (#20956) 2016-07-14 16:48:51 +02:00
Konrad Malawski
65fae200b7 =htp #20884 fix header name rendering issue when $minus present (#20940) 2016-07-13 14:53:56 +02:00
Arnout Engelen
92019c7ac9 Recommend new SecureRandom for an HTTPS server #20908 (#20909) 2016-07-08 11:12:36 +02:00
Konrad Malawski
54ecf32d2b =htp #20915 fix too small timing issue in DirectivesSpec (#20916)
* =htp #20915 fix too small timing issue in DirectivesSpec

* applying scalariform reformatting that keeps popping up
2016-07-08 10:33:32 +02:00
Andrea Peruffo
a230f2fe34 =str switch to java std lib ThreadLocalRandom. (#20877) 2016-07-05 14:59:48 +02:00
monkey-mas
dce174b455 !htp #20102 Fix authentication scheme of WWW-Authentication header for OAuth2 over HTTP (#20756) 2016-06-30 10:28:40 +02:00
Patryk Jażdżewski
421eb3d021 =htp simple head test to cheack manual completion with empty Source (#20853)
* simple head test to cheack manual completion with empty Source, for issue 20182
2016-06-29 13:50:58 +02:00
Michal Sitko
72f8544efd +htp #18929 add withSizeLimit directive (#20760)
withSizeLimit and withoutSizeLimit directives added
2016-06-28 12:14:44 +02:00
gosubpl
4b89fcd643 +doc #20466 akka http java dsl example snippets timeout directives (#20812)
* #20466 added checks to the TimeoutDirectivesExampleSpec

* #20466 added missing Java directive wrapper, added Java test, added some comments to Scala spec

* #20466 test minor fixes (typos, comments, unused code)

* #20466 replaced placeholders with proper snippets in Java docs

* #20466 added proper withRequestTimeout example to JavaTestServer

* #20466 comment - clarifies the request-timeout = infinite case

* #20466 post-review changes (#20812)
2016-06-22 01:55:28 +02:00
Robert Budźko
e40a2b21c4 +doc #20521 Enrich docs and tests regarding empty strings used in matchers (#20719) 2016-06-08 15:20:21 +02:00
kwyczesany
7fdd5983a3 +htp #19756: Add extractData and extractRequestEntity directives. (#20730)
* 19756: Add extractData and extractRequestEntity directives.

remove unnecessary import

* #19756: add documentation to extractDataBytes and extractRequestEntity directives
2016-06-07 21:02:38 +02:00
Patrik Nordwall
4acc1cca6a Merge pull request #20681 from bantonsson/wip-ban-update-scalariform
Update to a working version of Scalariform
2016-06-03 07:20:34 +02:00
gosubpl
54c99d8184 =htp #20648 encoder now encodes all response types, not only successes (#20691)
* #20648 encoder now encodes all response types, not only successes

* #20648 fix by autoformatter
2016-06-02 22:39:20 +02:00
Björn Antonsson
c66ce62d63 Update to a working version of Scalariform 2016-06-02 22:12:36 +02:00
Konstantin Fedorov
f9922398a7 +htp #19929 NameReceptacle[T].as[B] take Unmarshaller[T, B] instead of FromStringUnmarshaller 2016-06-02 15:27:18 +02:00
Patrik Nordwall
03eaacdbbb Merge pull request #20680 from akka/wip-ByteString.empty-patriknw
use ByteString.empty
2016-06-02 14:37:03 +02:00
tjugo
0eda4075ef +htp #20535 add checkSameOrigin directive to HeaderDirectives (#20560)
*  #20535 add checkSameOrigin directive to WebSocketDirectives

* refactoring + add docs

* refactoring + cleanup in docs

* fix types and conversions in the InvalidOriginHeaderRejection

* simplify InvalidOriginHeaderRejection to InvalidOriginRejection
2016-06-02 11:58:20 +02:00
Patrik Nordwall
184e45e6b2 use ByteString.empty
* and a few other cleanups
2016-06-01 15:01:02 +02:00
Stefano Bonetti
3f8dacfd44 +htp #20198 onCompleteWithBreaker directive (#20402) 2016-05-31 21:48:19 +02:00
Patrik Nordwall
10d40f4bc3 Merge pull request #20618 from akka/wip-20607-DeflateSpec-patriknw
increase some test timeouts in http, #20607
2016-05-24 19:54:48 +02:00
Patrik Nordwall
03fd6ac4b7 increase some test timeouts in http, #20607 2016-05-24 16:07:47 +02:00
Konrad Malawski
a299b30c0b !htp,java #20592 javadsl complete* should take Marshaller[...,RequestEntity] (#20593) 2016-05-24 15:20:28 +02:00
Konrad Malawski
17e38d0fe2 =htp #20601 increase timeout in File touching tests (#20603) 2016-05-24 11:36:31 +02:00
Johan Andrén
ebef60388f Workaround for unidoc failing to compile scaladsl.server.Rejection 2016-05-16 16:59:12 +02:00
Oleksii
dc67603400 20413: Implemented. Now 0 and 1 treated as boolean if specified. (#20526)
20413: Added test case according to the code review
2016-05-16 11:10:51 +02:00
Johan Andrén
29029be31d !htp #18919 #19519 New JavaDSL for Akka HTTP (#20518)
* !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
2016-05-16 10:38:40 +02:00
Konrad Malawski
d886a1d0b5 htc #20379 allow registering custom media types (#20401)
htc #20379 add mima filters for custom media type
2016-05-12 09:46:29 +02:00