-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Akka-HTTP backend #208
Akka-HTTP backend #208
Changes from all commits
843a076
c3a19f1
90a0903
4e14d8a
fb866dc
93adff4
0f1a115
d044a86
ef39d98
0b4ff08
726039f
fe481c9
c5b3bd7
7315488
8065f62
d26cb84
57f33b7
cdc2704
2f80e22
13dbf85
5b4c495
13dc162
036fd4b
e0a88ae
875ad53
4d6d517
c10f727
082b787
e03db58
62de06d
bc19089
311bd62
0f16eac
9c81700
d248fa4
526042c
766ae0b
9ce489b
58323ad
814d633
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -319,6 +319,27 @@ lazy val `play-ahc-ws-standalone` = project | |
`shaded` | ||
).disablePlugins(sbtassembly.AssemblyPlugin) | ||
|
||
//--------------------------------------------------------------- | ||
// Akka Http implementation of WS | ||
//--------------------------------------------------------------- | ||
|
||
lazy val `play-akka-http-ws-standalone` = project | ||
.in(file("play-akka-http-ws-standalone")) | ||
.settings(commonSettings) | ||
.settings(formattingSettings) | ||
.settings( | ||
fork in Test := true, | ||
testOptions in Test := Seq(Tests.Argument(TestFrameworks.JUnit, "-a", "-v")) | ||
) | ||
.settings( | ||
// The scaladoc generation | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this a |
||
) | ||
.settings(libraryDependencies ++= standaloneAkkaHttpWSDependencies) | ||
.dependsOn( | ||
`play-ws-standalone` | ||
) | ||
.disablePlugins(sbtassembly.AssemblyPlugin) | ||
|
||
//--------------------------------------------------------------- | ||
// JSON Readables and Writables | ||
//--------------------------------------------------------------- | ||
|
@@ -380,6 +401,7 @@ lazy val `integration-tests` = project.in(file("integration-tests")) | |
.settings(shadedOAuthSettings) | ||
.dependsOn( | ||
`play-ahc-ws-standalone`, | ||
`play-akka-http-ws-standalone`, | ||
`play-ws-standalone-json`, | ||
`play-ws-standalone-xml` | ||
) | ||
|
@@ -402,6 +424,7 @@ lazy val root = project | |
`play-ws-standalone-json`, | ||
`play-ws-standalone-xml`, | ||
`play-ahc-ws-standalone`, | ||
`play-akka-http-ws-standalone`, | ||
`integration-tests` | ||
) | ||
.disablePlugins(sbtassembly.AssemblyPlugin) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
The `rootCA.crt` and `server.p12` have been taken from [Akka Http Tls Tests Keys](https://github.com/akka/akka-http/tree/v10.0.11/akka-http-core/src/test/resources/keys). |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIDXTCCAkWgAwIBAgIJANYwx08wP3STMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV | ||
BAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBX | ||
aWRnaXRzIFB0eSBMdGQwHhcNMTUwNzIzMDk0ODI2WhcNMjUwNDIxMDk0ODI2WjBF | ||
MQswCQYDVQQGEwJBVTETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UECgwYSW50 | ||
ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB | ||
CgKCAQEArk0K/Rn7uND2YGFBks5Sok1WvNdHQccPESEw2hNVF32ExAhbBXCrFaIl | ||
Io0q4eYSbypeauEjDXB/NJXurEefL8ONXK62erJDKKQ0aTTYqsVifoNYA9ORWoGE | ||
XhtAfOx4xvzr6vF1e3kz0PB/A4ftn0vvVygYnf/2E2bQZgaw8dXP5lIGasEzzigB | ||
LX/qTEW/vBOL98Rxp6JvjwvYMbPSZGwNwSz+tI5W2psdE1Mga2Qnsv3j+STWlD9v | ||
+JlgdN8r3PyR1sl3jC7gCj3AaOhv4RbAbqjwnZ9nrckx16PFiMtJiVRea7CQXN7g | ||
191EVujQnlg1LOhiSMKwVsuoXr08ywIDAQABo1AwTjAdBgNVHQ4EFgQU2THI/ilU | ||
M0xds3vZlV4CvhAZ1d8wHwYDVR0jBBgwFoAU2THI/ilUM0xds3vZlV4CvhAZ1d8w | ||
DAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAK9LO0HyIi0xbTISsc+A5 | ||
LQyZowgRAGqsNNmni7NKDXauPLZrCfDVhvo/FPP1XSFShXo7ARvro9lul4AJlkNN | ||
VgX0gbWtkiAx0uLqlbMsC6imj2L9boRse7mzI/Ymem5SNTn9GUnlMiZ74rca9UT4 | ||
Dk9YytrT4FSpomiL6z8Xj604W3RuLSdEfpfcn3Jh2tFSZ9hyLwB7ATUTA/yuj1SU | ||
G1gmoPMvlnPzNj2lIqyIdQxGdxt+L3mFO20CxBkeieWqQuNptpjwptliFjkZJJZP | ||
wQlx9qLLvs/eFC2AUWj+hbsl37PuARR9hoeqbKRcUjwGtaXOqikrvX1qzPc2+ij9 | ||
/w== | ||
-----END CERTIFICATE----- |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package akka.io | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any reason to have this inside |
||
|
||
import java.net.InetAddress | ||
|
||
import scala.concurrent.duration._ | ||
|
||
class AkkaExampleOrgToLocalhostDnsProvider extends DnsProvider { | ||
override def cache: Dns = { | ||
val cache = new SimpleDnsCache() | ||
cache.put(Dns.Resolved("akka.example.org", Seq(InetAddress.getByName("127.0.0.1"))), 1.hour.toMillis) | ||
cache | ||
} | ||
override def actorClass = classOf[InetAddressDnsResolver] | ||
override def managerClass = classOf[SimpleDnsManager] | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. good :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it might be worth naming
play-akka-http-ws-experimental
, since this is still in development and we could possibly change APIs. WDYT @marcospereira?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree.
It would be consistent with the way we changed from Netty to Akka HTTP on the server backend. It is also easier to set users expectations.