-
-
Save NathanHowell/f0e71c053e8b892c4c49 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
readTask = do | |
req' <- parseUrl "https://10.64.251.32/rest/api/latest/issue/BNAP-291" | |
manager <- newManager manSettings | |
let req'' = applyBasicAuth (pack "sandboxer") (pack "sandboxer") req' | |
runResourceT $ do | |
Response _ _ _ body <- http req'' manager | |
pBody <- body $$+- sinkParser json | |
liftIO $ print pBody | |
closeManager manager | |
return () | |
where manSettings = | |
def | |
{ managerCheckCerts = \ _ _ -> return CertificateUsageAccept } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment