Commit graph

61 commits

Author SHA1 Message Date
Björn Antonsson
2bdfea25c7 Merge pull request #15895 from richdougherty/richd-http-integration-2.3
+hco Make `Content-Length` header public again and add integration tests
2014-09-22 11:16:06 +02:00
Rich Dougherty
8588fb9fbf !hco Make Content-Length and Content-Type visible but not constructible
This makes the `Content-Length` and `Content-Type` types visible - but not
constructible - outside of Akka HTTP. The change partially reverts #15800.
the http package. The types need to be visible so that Play can access
all parsed headers. However they types are not constructible outside Akka
HTTP because it is not desirable for users to create these headers. Users
should set the Content-Length and Content-Type via the members of the
HttpEntity objects.

Includes integration tests in the io.akka package to ensure that objects
have correct visibility outside akka.http.
2014-09-19 14:21:07 +12:00
Mathias
1f32faeb96 !htc move akka.http.{client,server,parsing,rendering} underneath akka.http.engine package 2014-09-17 16:39:55 +02:00
Mathias
b367613110 =htc move source files into directories for new package structure 2014-09-17 16:26:23 +02:00
Mathias
88d71500ca =htc Fix flow transformer naming error 2014-09-17 16:02:01 +02:00
Björn Antonsson
a902d079b0 +pro #15406 Split up stream into testkit, tests and tck 2014-09-16 10:16:38 +02:00
Mathias
e8c7dc2d58 !htc apply various upgrades and improvements
Most importantly
- Switch to implicit FlowMaterializers, refs #15716
- Introduce new `Deferrable` abstraction
- Remove `EnhancedSeq`
2014-09-11 16:54:15 +02:00
Konrad 'ktoso' Malawski
54e55a659c +str reintroduced the TCK, 0.4.0.M2-SNAPSHOT, passing all tests
Cheers from JavaZone!
2014-09-10 17:44:01 +02:00
Johannes Rudolph
0bc2f37fc4 =hco #15682 replace default toLowerCase calls with one using Locale.ROOT 2014-09-09 09:18:20 +02:00
Johannes Rudolph
10868966d3 =hco fail pending tests faster 2014-09-08 17:39:09 +02:00
Johannes Rudolph
83d40f3bbd !hco #15800 mark Content-Length header private for now
Instances will only created during HTTP message parsing and its value will
then be provided as a field of one of the HttpEntity subclasses.
2014-09-08 17:37:46 +02:00
Konrad 'ktoso' Malawski
cc4fd5ca2c !str #15121 MaterializerSettings now uses a config object
Resolves #15121
2014-09-01 19:21:57 +02:00
Patrik Nordwall
b0051c492e =str #15744 Hook-up transform to the AST nodes
* Removed unused parts of the new dsl, such as FlowGraph
* Materialization of transform, still with old way of terminal operators,
  input/output factories will come next
* New ActorBasedFlowMaterializer in impl2
2014-09-01 12:10:56 +02:00
Konrad Malawski
55e48918fd Merge pull request #15725 from ktoso/wip-transformerFactory-ktoso
!str #15271 make transform() take a factory instead of Transformer
2014-08-26 16:15:36 +02:00
Konrad 'ktoso' Malawski
5b1c05f3fe !str #15271 make transform() take a factory instead of Transformer
+ Makes reusing flows safe
+ Adds timerTransform for ops which need TimerTransformer
+ Adds TransformerLike in order to keep transform/timerTransform
  typesafe in respect to the passed in type og Transformer

Resolves #15271
2014-08-22 14:21:02 +02:00
Martynas Mickevicius
3c38706bb7 !str #15672 add a way to retrieve Publsiher or Subscriber from Output/Input
* also remove ClosedFlow.as(...)
2014-08-22 14:19:41 +03:00
Martynas Mickevicius
59e9f71629 !str #15672 add HTTP Pipeline with the new DSL
* implement graph operations as case class junctions
* add materialization method to ClosedFlow
2014-08-22 12:17:33 +03:00
Björn Antonsson
3ca589ea1b Merge pull request #15709 from spray/w/15670-add-BodyPartExtractors
=htc #15670 add convenience BodyPart extractors
2014-08-22 11:00:18 +02:00
Björn Antonsson
8b359b90d8 Merge pull request #15712 from spray/w/15711-fix-bind-error-message
=htc #15711 fix Http.Bind failure warning message
2014-08-22 09:34:07 +02:00
Patrik Nordwall
1bb5d37780 !str #15551 Switch to implicit passing of FlowMaterializer
* implicit param
* change tests to use implicit materializer
* add ActorFlow trait that provides an implicit materializer inside an actor
  in the right way, i.e. encourage usage of that instead of
  implicit def mat(implicit arf: ActorRef): FlowMaterializer
* make http compile, but those who know the api better will have to adjust
  to take full advantage of the implicit materializer
2014-08-21 13:40:43 +02:00
Johannes Rudolph
7075564281 =htc #15711 fix Http.Bind failure warning message 2014-08-21 13:01:14 +02:00
Johannes Rudolph
8c85cc41d3 =htc #15670 add convenience BodyPart extractors 2014-08-21 12:03:19 +02:00
Patrik Nordwall
bf3551b554 Merge pull request #15673 from akka/wip-15076-foreach-patriknw
!str #15076 Make foreach a terminal operation, returning Future[Unit]
2014-08-20 08:08:39 +02:00
Patrik Nordwall
0f2f5b3f89 Merge pull request #15562 from akka/wip–rename-tee-to-broadcast-√
= str - Renames Flow and Duct 'tee' operation to 'broadcast'
2014-08-20 07:48:57 +02:00
Roland Kuhn
fd96862913 Merge pull request #15580 from spray/w/15560-fix-entity-stream-termination
=htc #15560 close entity data stream eagerly + more tests + fix for #15686
2014-08-19 13:01:48 +02:00
Roland Kuhn
2c8b8af8e0 Merge pull request #15666 from spray/w/15665-fix-BoyerMoore
=hco #15665 fix BoyerMoore for byte values > 0x7f
2014-08-19 12:39:46 +02:00
Johannes Rudolph
e066dd36fc =htc #15686 fix off-by-one error when creating strict entities for small payloads 2014-08-19 12:20:16 +02:00
Johannes Rudolph
b69235e195 =htc #15560 close entity data stream eagerly + add more tests 2014-08-19 12:13:23 +02:00
Patrik Nordwall
fdc5532483 !str #15076 Make foreach a terminal operation, returning Future[Unit] 2014-08-15 17:32:46 +02:00
Patrik Nordwall
f4bc1704d3 Merge pull request #15563 from akka/wip-materializer-last-√
= str - Moving FlowMaterializer argument to the end of all Flow and Duct...
2014-08-15 13:51:39 +02:00
Johannes Rudolph
793417cba0 =hco #15665 fix BoyerMoore for byte values > 0x7f
This also converts tests to run over a binary alphabet instead of over
plain alphanumeric chars.
2014-08-14 17:09:23 +02:00
Mathias
e7ef23f6f8 =htp Apply remaining review feedback 2014-08-06 00:20:12 +02:00
Mathias
3747196356 =htp Add more multipart unmarshalling tests 2014-08-05 20:11:18 +02:00
Mathias
70e6106243 =hco Apply review feedback 2014-08-05 20:11:18 +02:00
Mathias
1c3bd3817e =hco,htp Upgrade to latest release-2.3-dev head 2014-08-05 20:11:18 +02:00
Mathias
991293b25f +htp add high-level unmarshalling API entry point, more tests 2014-08-05 20:11:18 +02:00
Mathias
e39f4fd0d2 +htp add first version of new unmarshalling infrastructure, tests still missing 2014-08-05 20:11:18 +02:00
Mathias
bdcccf925a !hco prepare for multipart body parser implementation
Breakingness stems from
- renaming `EnhancedString::getAsciiBytes` to `EnhancedString::asciiBytes`
- removal of `HttpForm` (for now)
- refactoring of `MultipartFormData`
2014-08-05 20:11:18 +02:00
Mathias
52839bc11d +htp add first version of new marshalling infrastructure 2014-08-05 20:11:18 +02:00
Mathias
5fce301c28 +hco various smaller cleanups and helper additions 2014-08-05 20:11:18 +02:00
Viktor Klang
bb8ab0a925 = str - #15621 - Moving FlowMaterializer argument to the end of all Flow and Duct methods which uses it. 2014-08-05 11:36:07 +02:00
Viktor Klang
6c7dc10a50 = str - #15618 - Renames Flow and Duct 'tee' operation to 'broadcast' 2014-08-05 10:47:42 +02:00
Endre Sándor Varga
d6fbadc61e !str: #15474: Migrate to reactive-streams 0.4.0.M1 2014-07-28 11:35:20 +02:00
Björn Antonsson
95c8077136 +pro,hco Disable JavaDoc and revert breaking code changes 2014-06-26 11:51:46 +02:00
Björn Antonsson
e32ba9c54a +pro,hco,par Make sure that things build on both 2.10 and 2.11 2014-06-26 11:51:45 +02:00
Björn Antonsson
8ff980c693 +pro Create aggregate project for pulishing stream/http-core/parsing 2014-06-26 11:51:34 +02:00
Björn Antonsson
37308bfd3e =hco Changes needed to compile with java 6 on mac 2014-06-16 15:41:51 +02:00
Johannes Rudolph
d128038a6e +hco Java model for http-core 2014-06-16 15:41:34 +02:00
Mathias
451824dd8a =hco Remove Low-Level API Design.rst 2014-06-16 15:09:04 +02:00
Mathias
db13edbd55 !hco Add client-side request rendering and response parsing, refactor, strip-down
Remove everything that is out of scope for akka-http-core M1.
Things like the host- and request-level client-side API will be added back later.
2014-06-16 15:08:42 +02:00