~/bend-docscommunity

http.bend relies on unsafe/foreign

raw source on the hub · import 0x39cbd6b8923682f1e4deba6ee6056b43/http.bend as Http

SPDX-License-Identifier: Apache-2.0 Verified bounded HTTP(S) effect. Native builds load libcurl at runtime without changing Bend Base or its linker.

1 import
import Base

Types

type HTTP.Header source · line 6 · raw

Data

type HTTP.Response source · line 9 · raw

Data

Effects (foreign code)

effect HTTP.request source · line 12 · raw

@method:String -> @url:String -> @headers:List<&2, HTTP.Header> -> @body:String -> @max_output:U32 -> @timeout_ms:U32 -> @ca_file:String -> IO(Result<&1, &1, Pair(U32, String), HTTP.Response>)

foreign: http.c, http.js