profun/app/Main.hs

8 lines
249 B
Haskell
Raw Normal View History

2024-05-25 14:32:43 +02:00
{-# LANGUAGE OverloadedStrings #-} --needed for string arguments
import Network.HTTP.Simple
main :: IO ()
main = do
apiResponse <- httpLBS "POST http://httpbin.org/get"
putStrLn $ "Status code: " ++ show (getResponseStatusCode apiResponse)