Skip to content
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

airframe-http-client for Scala.js #807

Closed
xerial opened this issue Nov 14, 2019 · 1 comment
Closed

airframe-http-client for Scala.js #807

xerial opened this issue Nov 14, 2019 · 1 comment

Comments

@xerial
Copy link
Member

xerial commented Nov 14, 2019

Add airframe-http-client implementation for Scala.js:

def get[X](path:String): Future[X] = macro ...

This macro will generate code like this:

        AjaxUtil.call("/v1/query") { response =>
          val codec   = MessageCodec.of[Seq[PrestoQuery]]
          val data = codec.fromMsgPack(response)
          Future(data)
      }

To do so:

  • We need to extract common interfaces in airframe-http for Scala and Scala.js.
    • Some package relocation will be necessary (e.g., HttpClient might need to move to wvlet.airframe.http.client)
  • Use cross Scala build for airframe-http
@xerial xerial mentioned this issue Dec 5, 2019
76 tasks
@xerial
Copy link
Member Author

xerial commented Mar 12, 2020

Added in #967

@xerial xerial closed this as completed Mar 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant