send Ohttp Request
Send a request through an OHTTP channel.
This encrypts the request and routes it through the configured OHTTP relay/gateway for the specified channel.
Arguments
request- The request to sendchannel- The name of the OHTTP channel to use (e.g., "merino")
Example (Kotlin)
val response = sendOhttpRequest(
Request(
method = Method.GET,
url = "https://example.com/api",
headers = mapOf("Accept" to "application/json"),
body = null
),
"merino"
)Content copied to clipboard