Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Memory = Memory {}
- data HTTPRequest = HTTPRequest {}
- makeKV :: JSON a => [(String, a)] -> JSValue
- requestObj :: HTTPRequest -> [(String, JSValue)]
- data WasmFile = WasmFile {}
- data WasmData = WasmData {}
- data WasmURL = WasmURL {}
- data Wasm
- wasmFile :: String -> Wasm
- wasmURL :: String -> String -> Wasm
- wasmData :: ByteString -> Wasm
- withName :: Wasm -> String -> Wasm
- withHash :: Wasm -> String -> Wasm
- data Manifest = Manifest {}
- manifest :: [Wasm] -> Manifest
- withConfig :: Manifest -> [(String, String)] -> Manifest
- withHosts :: Manifest -> [String] -> Manifest
- withPaths :: Manifest -> [(String, String)] -> Manifest
- withTimeout :: Manifest -> Int -> Manifest
- toString :: JSON a => a -> String
Documentation
Memory options
data HTTPRequest Source #
HTTP request
Instances
JSON HTTPRequest Source # | |
Defined in Extism.Manifest readJSON :: JSValue -> Result HTTPRequest showJSON :: HTTPRequest -> JSValue readJSONs :: JSValue -> Result [HTTPRequest] showJSONs :: [HTTPRequest] -> JSValue |
requestObj :: HTTPRequest -> [(String, JSValue)] Source #
WASM from file
WASM from raw bytes
WASM from a URL
Specifies where to get WASM module data
wasmData :: ByteString -> Wasm Source #