Skip to content

Releases: eed3si9n/gigahorse

0.7.0

12 Jun 23:29
v0.7.0
6c38b06
Compare
Choose a tag to compare

Gigahorse 0.7.0 is published for Scala 3, 2.13, and 2.12.

Apache HTTP Components support

Gigahorse 0.7.0 adds support for Apache HTTP Components (HttpAsyncClient).

scala> import gigahorse.*, support.apachehttp.Gigahorse

scala> import scala.concurrent.*, duration.*

scala> val http = Gigahorse.http(Gigahorse.config)
val http: gigahorse.HttpClient = gigahorse.support.apachehttp.ApacheHttpClient@3960b18a

scala> val r = Gigahorse.url("https://api.duckduckgo.com").get.
     |   addQueryString("q" -> "1 + 1")
val r: gigahorse.Request = Request(https://api.duckduckgo.com, GET, EmptyBody(), Map(), Map(q -> List(1 + 1)), None, None, None, None, None, None)

scala> val f = http.run(r, Gigahorse.asString andThen {_.take(60)})
val f: concurrent.Future[String] = Future(<not completed>)

scala> Await.result(f, 120.seconds)
val res0: String = <!DOCTYPE html><html lang="en-US" class="no-js has-zcm  no-t

scala> http.close()

#79 by @eed3si9n

Other Changes

  • Update ssl-config to avoid binary incompatibilities by @OlegYch in #78

New Contributors

Full Changelog: v0.6.0...v0.7.0
Documentation: https://eed3si9n.com/gigahorse/

0.6.0

11 Jun 19:48
v0.6.0
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.5.0...v0.6.0

0.5.0

19 Jun 02:44
v0.5.0
588feaa
Compare
Choose a tag to compare
  • Gigahorse 0.5.0 is released for Scala 2.11, 2.12, and 2.13
  • Updates ssl-config to 0.4.0
  • Other dependencies were bumped too #63 by @xuwei-k

Learn more about Gigahorse in https://eed3si9n.com/gigahorse/

0.4.0

04 Apr 03:44
v0.4.0
63b9f45
Compare
Choose a tag to compare

0.3.1

03 Jul 22:06
v0.3.1
Compare
Choose a tag to compare

SignatureCalculator

Gigahorse 0.3.1 expands the SignatureCalculator to be a generic/common way to add a signature http header derived from url and content.

#26 by @alexdupre

Form support for Akka HTTP binding

This also adds form support for Akka HTTP binding.

#25 by @eed3si9n

0.3.0

27 Apr 07:59
v0.3.0
Compare
Choose a tag to compare

Square OkHttp support

Gigahorse 0.3.0 adds Square OkHttp support.

Gigahorse-OkHttp is availble for Scala 2.10, 2.11, and 2.12.

Shaded AHC 2.0

Gigahorse now shades AHC 2.0.

0.2.0

09 Jan 12:05
v0.2.0
Compare
Choose a tag to compare

AHC 2.0 and (experimental) Akka HTTP backend

Gigahorse 0.2.0 abstracts over two HTTP backends.
@alexdupre contributed migration from AHC 1.9 to AHC 2.0, which is based on Netty 4 in #12.

There's now also an experimental Akka HTTP support. #15 by @eed3si9n

WebSocket support

@alexdupre also contributed WebSocket support.

Async processing with Reactive Stream

Thanks to Lightbend implementing Reactive Stream on both Akka HTTP and AHC #963, Gigahorse can abstract over both backends as Reactive Stream of byte or String stream.
The stream processing is provided using http.runStream(r, f).

import gigahorse._, support.akkahttp.Gigahorse
import scala.concurrent._, duration._

Gigahorse.withHttp(Gigahorse.config) { http =>
  val r = Gigahorse.url("http://localhost:8000/README.markdown").get
  val f = http.runStream(r, Gigahorse.asStringStream andThen { xs =>
    xs.foreach { s => println(s) }
  })
  Await.result(f, 120.seconds)
}

#16 by @eed3si9n