http-barf: a library to make http requests without worrying much

[ agpl, library, network ] [ Propose Tags ] [ Report a vulnerability ]

a dead simple library to make http requests. It provides helper functions to use different http methods, it supports both insecure and secure connections without having to deal with managers and the requests can be trivially modified using a monoidal combinator library


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.1.0
Change log CHANGELOG.md
Dependencies aeson (<2.3), base (<5), bytestring (<0.13), http-client (<0.8), http-client-tls (<0.4), mtl (<2.4), vector (<0.14) [details]
License AGPL-3.0-or-later
Author mangoiv
Maintainer contact@mangoiv.com
Category Network
Home page https://git.mangoiv.com/mangoiv/http-barf
Uploaded by mangoiv at 2024-08-24T08:49:22Z
Distributions NixOS:0.1.1.0
Downloads 51 total (4 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for http-barf-0.1.1.0

[back to package description]

Hackage ci

http barf

HTTP barf is a dead simple library to make http requests. It provides helper functions to use different http methods, it supports both insecure and secure connections without having to deal with managers and the requests can be trivially modified using a monoidal combinator library.

You may use it if you just have to vomit out a quick script and don't want to deal with all the complexities of involving a library that provides more features or more safety guarantees.

Example

λ GHCi ~ res <- get_ "https://jsonplaceholder.typicode.com/posts" [q_ "userId" "1"]
res :: Data.ByteString.Lazy.Internal.LazyByteString
(0.40 secs, 6,838,760 bytes)
λ GHCi ~ decode @Value res 
Just (Array [Object (fromList [("body",String "quia et suscipit\nsuscipit ...
it :: Maybe Value
(0.01 secs, 3,324,080 bytes)