Skip to content

airframe-http: Add client interface for using HttpMessage.Request/Response #1131

@xerial

Description

@xerial

For supporting backend independent http request/response handling.

val client = Http.client.withBackend(FinagleClientBackend).newClient("localhost:8080")
client.send(Http.GET("/v1/info")) // => Scala.Future[Response] 

If we implement a backend using HttpURLConneciton like sttp https://github.com/softwaremill/sttp/blob/master/core/src/main/scalajvm/sttp/client/HttpURLConnectionBackend.scala, airframe-http can be used with minimum dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions