Commit graph

283 commits

Author SHA1 Message Date
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
Johan Andrén
0aea3af0ad =htc #19650 expse effectivePort on Uri, better port handling
* =htc #19650 Public access to effectivePort in Uri

* =htc #19650 normalize port as late as possible
2016-05-12 08:55:06 +02:00
Johan Andrén
196c4bd4a1 re-enable DontLeakActorsOnFailingConnectionSpecs #19049 2016-05-11 08:55:34 +02:00
Anil Gursel
b57290125a headerValueByType should extract just value #20472 2016-05-07 11:08:56 -05:00
Stefano Bonetti
7d40c1d8d4 htp #19681 MalformedRequestContentRejection cause traceability (#20346)
* improved cause tracking for MalformedRequestContentRejection
* unwrapping RejectionErrors when unmarshalling
* amended old project name in CONTRIBUTING.md
2016-05-06 11:19:01 +02:00
Johan Andrén
f5cd3cd4da =htt #19792 Increase file upload directive test timeouts 2016-05-02 11:34:53 +02:00
mumutu
d08b335143 boolean unmarshallers will unmarshall 0 to false 1 to true (#20416)
* add 0 => false 1 => true
* add test
2016-04-29 17:46:14 +02:00
2beaucoup
7913e25257 =htp #20338 correct byte range slicing (#20382) 2016-04-28 19:43:58 +02:00
Konrad Malawski
0e11ec2057 !htc #20371 allows for simple HTTPS usage from Java, fixes typo in APIs (#20373) 2016-04-25 12:01:03 +02:00
Konrad Malawski
c57c6eda7e +htc #20273 EitherUnmarshaller (#20274) 2016-04-22 13:48:00 +02:00
Johan Andrén
1f4a83e82b Disable diagram verification for akka-http-tests (#20355) 2016-04-18 18:49:07 +02:00
hepin1989(虎鸣)
e9670ee91d = rename FlowGraph* to GraphDSL 2016-04-15 00:18:05 +08:00
Nafer Sanabria
a3ca98f87d htc #20258 add override modifier in the custom header methods 2016-04-11 13:15:27 +02:00
Alan Johnson
b3c85512a3 htp #19678 add variadic concat route combinator
* add variadic route concatenation function

* add `concat` to `~` warning bubble in docs

* fix grammar of warning bubble, and clarify
2016-04-05 15:36:46 +02:00
Konrad Malawski
d83a323549 =htp #20052 headerValueByType now works with custom headers 2016-03-22 13:11:05 +01:00
Konrad Malawski
2933045156 +htp #20002 add authorizeAsync 2016-03-17 00:58:33 +01:00
Konrad Malawski
a253014ef4 =htp #19397,#19842 fix content negotiation for non 2xx and Accept handling 2016-03-15 09:40:58 +01:00
Martynas Mickevičius
50f99328fe #18765 Update to latest MiMa which is now an AutoPlugin.
* check for binary inc. issues by default
* if check is not needed, disable MimaPlugin
* determine old artifact id from the current one
2016-03-10 10:45:35 +02:00
Konrad Malawski
ac1888fd66 Merge pull request #19871 from ktoso/wip-timeout-http-error-ktoso
=htc #19827 avoid double-push when request timeout triggers
2016-03-08 19:29:35 +01:00
Konrad Malawski
2d7d24dee6 +doc,htp #19896 directives for RequestTimeout and docs 2016-03-08 18:17:35 +01:00
Roland Kuhn
45e97e8467 remove akka.stream.testkit.AkkaSpec, fixes #19879 2016-02-25 15:26:51 +01:00