Function
renderViaHTTP
(
appPort: string | number,
pathname: string,
query?: Record<string, any> | string | undefined,
opts?: RequestInit
)
Source from the content-addressed store, hash-verified
| 248 | } |
| 249 | |
| 250 | export function renderViaHTTP( |
| 251 | appPort: string | number, |
| 252 | pathname: string, |
| 253 | query?: Record<string, any> | string | undefined, |
| 254 | opts?: RequestInit |
| 255 | ) { |
| 256 | return fetchViaHTTP(appPort, pathname, query, opts).then((res) => res.text()) |
| 257 | } |
| 258 | |
| 259 | export function findPort() { |
| 260 | // [NOTE] What are we doing here? |