Skip to content

http

@tynd/plugin-http enables the host http API and exposes its typed client. The API itself is documented on the http page.

Terminal window
tynd add http
import { http } from "@tynd/plugin-http/client";

Declaring the plugin compiles the matching api-http Cargo feature into the app host on the next tynd dev or tynd build. Or by hand: bun add @tynd/plugin-http and list it in plugins in tynd.config.ts.

Package @tynd/plugin-http
Kind Host-backed official plugin (facade over a host API)
Host API http
Aliases for tynd add fetch, request, requests
Catalog permission labels host:http, network
Estimated size 180 KB
Client exports HttpDownloadOptions, HttpProgress, HttpRedirect, HttpRequestOptions, HttpResponse, HttpStreamOptions, HttpStreamResponse, HttpTransportOptions, http