very simple, monoidal http client library for scripting in haskell
Find a file
mangoiv 6cfd8bd075
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
[chore] release 0.1.1.0
2024-08-24 10:48:52 +02:00
src/Network/HTTP [feat] no unnecessary conversion, add more docs in README 2024-08-24 10:35:54 +02:00
test [init] 2024-07-12 19:19:45 +02:00
.envrc [init] 2024-07-12 19:19:45 +02:00
.gitignore [init] 2024-07-12 19:19:45 +02:00
.woodpecker.yml [chore] add CI 2024-07-21 19:02:13 +02:00
CHANGELOG.md [chore] release 0.1.1.0 2024-08-24 10:48:52 +02:00
flake.lock [chore] bump flake lock 2024-08-24 10:46:12 +02:00
flake.nix [chore] enable haddock in flake 2024-07-12 20:25:04 +02:00
fourmolu.yaml [init] 2024-07-12 19:19:45 +02:00
http-barf.cabal [chore] release 0.1.1.0 2024-08-24 10:48:52 +02:00
LICENSE [init] 2024-07-12 19:19:45 +02:00
README.md [feat] no unnecessary conversion, add more docs in README 2024-08-24 10:35:54 +02:00

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)