Hoogle Search
Within LTS Haskell 24.40 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
multipartFormBody :: Boundary -> [Part] -> OutputStream Builder -> IO ()http-streams Network.Http.Client Build a list of parts into an upload body. You use this partially applied:
boundary <- randomBoundary let q = buildRequest1 $ do http POST "/api/v1/upload" setContentMultipart boundary let parts = [ simplePart "metadata" Nothing metadata , filePart "submission" (Just "audio/wav") filepath ] sendRequest c q (multipartFormBody boundary parts)
You must have called setContentMultipart when forming the request or the request body you are sending will be invalid and (obviously) you must pass in that same Boundary value when calling this function.-
http-streams Network.Http.Client Send form data to a server via an HTTP POST request. This is the usual use case; most services expect the body to be MIME type application/x-www-form-urlencoded as this is what conventional web browsers send on form submission. If you want to POST to a URL with an arbitrary Content-Type, use post.
-
jose Crypto.JOSE.Header No documentation available.
waitForAnimationFrame :: JSM Doublejsaddle Language.Javascript.JSaddle.Monad On GHCJS this is waitForAnimationFrame. On GHC it will delay the execution of the current batch of asynchronous command when they are sent to JavaScript. It will not delay the Haskell code execution. The time returned will be based on the Haskell clock (not the JavaScript clock).
waitForAnimationFrame :: JSM Doublejsaddle Language.Javascript.JSaddle.Run On GHCJS this is waitForAnimationFrame. On GHC it will delay the execution of the current batch of asynchronous command when they are sent to JavaScript. It will not delay the Haskell code execution. The time returned will be based on the Haskell clock (not the JavaScript clock).
-
jsaddle Language.Javascript.JSaddle.Types Wrapper used when sending a Object to the JavaScript context
JSObjectForSend :: JSValueForSend -> JSObjectForSendjsaddle Language.Javascript.JSaddle.Types No documentation available.
-
jsaddle Language.Javascript.JSaddle.Types Wrapper used when sending a JString to the JavaScript context
JSStringForSend :: Text -> JSStringForSendjsaddle Language.Javascript.JSaddle.Types No documentation available.
-
jsaddle Language.Javascript.JSaddle.Types Wrapper used when sending a JSVal to the JavaScript context