http
@tynd/plugin-http enables the host http API and exposes its typed client. The API itself is documented on the http page.
Install
Section titled “Install”tynd add httpimport { 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
Section titled “Package”| 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 |