Commit graph

217 commits

Author SHA1 Message Date
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
6f5d449bd0 +htc #18898 modeledCustomHeader to ease matching on headers 2015-11-24 12:01:26 +01:00
Mathias
9aacb6fb00 =htp #18999 fix IllegalArgumentException in getFromFile/getrFromResource when serving empty files 2015-11-23 16:11: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
Konrad Malawski
89461c2b2a Merge pull request #18905 from ktoso/wip-throws-in-tests-empty-stream-ktoso
=str #18902 in tests (due to grouped+Sink.head) empty response stream…
2015-11-16 15:52:02 +01:00
Konrad Malawski
8650d0c473 +str #18906 add Sink.headOption 2015-11-14 16:36:09 +01:00
2beaucoup
0b16046a34 =htp #18881 accept multipart boundary parameters with internal spaces 2015-11-10 16:13:43 +01:00
Konrad Malawski
985e3b1c2f =str #18902 in tests (due to grouped+Sink.head) empty response stream would throw 2015-11-10 13:52:33 +01:00
Konrad Malawski
f908a6a9dc =str #16927 preserve header order in body parts 2015-11-07 20:11:41 +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
Konrad Malawski
20f54435f1 Merge pull request #18770 from ktoso/wip-idleTimeout-ktoso
idleTimeout in HTTP
2015-10-29 14:16:16 -07:00
Konrad Malawski
2c2228c241 =str #16597 initial steps with idleTimeout 2015-10-27 13:55:18 -07:00
Johan Andrén
19c8e557ba =htp #18661 effectiveUri in Java testkit
Java testkit now uses effectiveUri to behave just like the Scala testkit so that
the host header and path is joined. This allows for test calls that use just a relative
URI.
2015-10-24 13:47:25 +02:00
Konrad Malawski
ce07ae75b7 +doc,htp #18496 overrideMethodWithParameter 2015-10-12 02:05:29 +02:00
Konrad Malawski
7f883a8b16 +htp #18496 add missing directive documentation (scala) 2015-10-07 10:46:11 +02:00
Konrad Malawski
a534e9bddc Merge pull request #17643 from pjan/revision/http/generalised-authentication
!htp #17384 - Generalised Security Directives to accept Bearer Token Authentication
2015-09-29 10:52:52 +02:00
Konrad Malawski
2569b3f92a Merge pull request #18520 from ktoso/wip-csvParams-simpler
=htc #18518 make it simpler to unmarshal csv values from params
2015-09-28 12:08:52 +02:00
pjan vandaele
4dde089d82 Generalised Authentication Directives to accept Bearer Tokens
Make type of credential authentication explicit

Cleanup
2015-09-26 09:40:29 +09:00
Roland Kuhn
68ba0643d6 =str,htp clean up build warnings
- explicitly provide Unit values and place parens around tuple creation
- remove structural type usage in TestUtils
- fix Java double-casts
- use unused Java values by asserting their non-nullness
- work around inability to place case class in trait (scripted test)

The remaining warnings about using private types in public methods are
bogus as reported in https://issues.scala-lang.org/browse/SI-9490.
2015-09-25 15:20:23 +02:00
Konrad Malawski
c9adfcfbc7 =htc #18518 make it simpler to unmarshal csv values from params 2015-09-20 19:27:04 +01:00
Johannes Rudolph
db1be86b02 +htp #16438 add Java-side rejection handling support 2015-09-09 10:31:00 +02:00
Johannes Rudolph
96ef8875c8 !htp use immutable collections in Rejections 2015-09-09 10:28:34 +02:00
Konrad Malawski
522edf11b6 Merge pull request #18390 from fehmicansaglam/18389-fix-spray-json-unmarshaller-utf8-bug-fehmicansaglam
Fix spray-json unmarshaller utf8 encoding bug
2015-09-03 11:16:31 +02:00
Fehmi Can Saglam
5cfbfc63ea =htp #18389 Fix spray-json unmarshaller utf8 encoding bug 2015-09-03 11:42:36 +03:00
Konrad Malawski
dfed97818f Merge pull request #18381 from ktoso/wip-reenable-tests-ktoso
=htp #18361 reenable pending tests ported from spray
2015-09-03 10:23:26 +02:00
Konrad Malawski
4e1b812828 =htp #18361 enable pending test in RouteDirectivesSpec 2015-09-01 15:24:28 +02:00
Konrad Malawski
1c3defc6dc =htp #18361 bump spray-json version and enable pending spec 2015-09-01 12:56:51 +02:00
Johannes Rudolph
3ef074d1ec =htp #17068 decodeRequestWith(NoEncoding) should not touch request entity 2015-08-31 12:08:05 +02:00
Johannes Rudolph
689ff45382 =htp #17419 fix Decoder.decode to collect all output data 2015-08-31 11:02:33 +02:00
Johannes Rudolph
060ea707c9 +htp #17726 add support for WS subprotocols to WebsocketDirectives
Also, update WebsocketDirectiveSpecs to the new WS testing infrastructure.
2015-08-26 13:39:20 +02:00
2beaucoup
75d50e6974 =htp fix test in FileAndResourceDirectivesSpec 2015-08-25 14:39:03 +02:00
2beaucoup
8dc2bd6e92 =htp: remove chunking leftovers from FileAndResourceDirectivesSpec, cleanup 2015-08-25 11:22:37 +02:00
2beaucoup
514b2bc687 =htp #17984 reenable test in ContentNegotiationSpec
also make it more agnostic to newline encodings
2015-08-17 09:48:54 +02:00
2beaucoup
e4f1ce36ef =htp: reenable tests 2015-08-06 10:57:43 +02:00
kulikov
fd290b2a66 =htp: fix match headers by symbol name 2015-07-29 20:02:08 +03:00
Johannes Rudolph
3b7d308545 !htp,jso,xml #18064 remove implicit parameters of Unmarshaller instances 2015-07-24 10:11:56 +02:00
2beaucoup
2012726f1b =doc, htp minor fixes in docs and tests 2015-07-17 16:22:12 +02:00
Konrad Malawski
569c0bf079 !htp #17965 more consistent and 22-ified javadsl handleWith 2015-07-15 11:31:18 +02:00
Johannes Rudolph
ed76b14447 +doc add more detailed PathDirectives documentation 2015-07-14 19:04:42 +02:00
Johannes Rudolph
c401d8a2fe +htp #16439 allow creation of custom marshallers on the java side 2015-07-14 18:36:18 +02:00
Konrad Malawski
12fa39cc39 Merge pull request #17987 from spray/w/17984-enable-content-negotiation-tests
ContentNegotiation fixes (and breakage)
2015-07-14 17:38:09 +02:00
Johannes Rudolph
e6d9f28545 =htp #17984 #17985 fix ContentNegotiationSpec 2015-07-14 14:42:34 +02:00
Johannes Rudolph
5ba7918cd9 =htp #17985 fix content negotiation assuming charsetRanges being List in pattern match
(cherry picked from commit 76cc4d890c3b7ea3a5510656520c20b165090adb)
2015-07-14 13:10:17 +02:00
Johannes Rudolph
e3ae7abb3b =htp #17984 enable lot's of broken tests in ContentNegotiationSpec
(cherry picked from commit ab14e14cccd08dfb260a1b0bb2d04f2cee44479e)
2015-07-14 13:10:15 +02:00
Johannes Rudolph
318ad0a849 +htp allow creation of custom Parameters, FormFields, PathMatchers, Unmarshallers, and RequestVals 2015-07-10 19:12:15 +02:00
2beaucoup
795faad37f =htp #17873 normalize whitespace for resource paths 2015-07-08 15:18:38 +02:00
Johannes Rudolph
83833ae4f8 =htj #16436 add missing Java directives 2015-06-24 12:03:02 +02:00
Johannes Rudolph
10ea40b2f8 !htj move RequestVal classes to javadsl.server.values 2015-06-24 11:59:19 +02:00