http4s-curl
http4s-curl copied to clipboard
curling isn't just for Canadians
```scala //> using lib "org.http4s::http4s-curl::0.2.0" import cats.effect.IO import org.http4s.curl._ object App extends CurlApp.Simple { def run = curlClient.expect[String]("https://example.com").flatMap(IO.println) } ``` Yields: ``` org.http4s.client.UnexpectedStatus: unexpected HTTP status: 100 Continue for request...
There's probably a few places we can take advantage of this. https://scala-native.org/en/latest/changelog/0.4.8.html#easier-access-to-arrays-underlying-memory
https://github.com/typelevel/keypool > Easy handles are meant and designed to be reused. When you have done a single transfer with the easy handle, you can immediately use it again for your...
For historical interest: When I clone from source, build, and run "sbt test" I get two instances of the error `curl_easy_setop: 1`, one for 'get' and one for 'put'. This...
The general pattern for http4s clients is to have a builder, and use that to create the client. That pattern will not work here, because the client is constructed for...
And I'm not really sure why. For example: ```scala // the server responds 400 parse error: invalid character in chunk size Request[IO](POST).withEntity(Stream.emit[IO, String]("blah")) // this just hangs Request[IO](POST).withEntity[Stream[IO, String]](Stream.empty) ```
## About this PR 📦 Updates [org.http4s:sbt-http4s-org](https://github.com/http4s/sbt-http4s-org) from `0.14.13` to `0.17.1` 📜 [GitHub Release Notes](https://github.com/http4s/sbt-http4s-org/releases/tag/v0.17.1) - [Version Diff](https://github.com/http4s/sbt-http4s-org/compare/v0.14.13...v0.17.1) ## Usage ✅ **Please merge!** I'll automatically update this PR to resolve...
## About this PR 📦 Updates [org.typelevel:munit-cats-effect](https://github.com/typelevel/munit-cats-effect) from `2.0.0-M4` to `2.0.0-RC1` 📜 [GitHub Release Notes](https://github.com/typelevel/munit-cats-effect/releases/tag/v2.0.0-RC1) - [Version Diff](https://github.com/typelevel/munit-cats-effect/compare/v2.0.0-M4...v2.0.0-RC1) ## Usage ✅ **Please merge!** I'll automatically update this PR to resolve...
Automated changes by the [update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) GitHub Action. ``` Flake lock file updates: • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/bfb7a882678e518398ce9a31a881538679f6f092?narHash=sha256-4zSIhSRRIoEBwjbPm3YiGtbd8HDWzFxJjw5DYSDy1n8%3D' (2024-05-24) → 'github:NixOS/nixpkgs/1e5b653dff12029333a6546c11e108ede13052eb?narHash=sha256-G5n%2BFOXLXcRx%2B3hCJ6Rt6ZQyF1zqQ0DL0sWAMn2Nk0w%3D' (2025-03-22) • Updated input 'typelevel-nix': 'github:typelevel/typelevel-nix/e494632f444ab0a45c7294e6231a0e7e13053e64?narHash=sha256-HYj9yoYOogKvC4lFx20mdrIkn0UBbYxkrp/1cycNrFM%3D' (2024-05-28) → 'github:typelevel/typelevel-nix/5f5d64ec129dad5f7e65f9d0567f8f5d4ac831b6?narHash=sha256-GfuVwjQOBHLgIzc/Xe%2BF1LiuYCqVPWUbofYqGBpZk/g%3D' (2025-03-24)...
## About this PR 📦 Updates [org.http4s:sbt-http4s-org](https://github.com/http4s/sbt-http4s-org) from `0.14.13` to `0.17.2` 📜 [GitHub Release Notes](https://github.com/http4s/sbt-http4s-org/releases/tag/v0.17.2) - [Version Diff](https://github.com/http4s/sbt-http4s-org/compare/v0.14.13...v0.17.2) ## Usage ✅ **Please merge!** I'll automatically update this PR to resolve...