Method
get
(
url: string,
responseSchema?: ZodType<T>,
options?: Omit<RequestOptions, "method" | "responseType">
)
Source from the content-addressed store, hash-verified
| 214 | } |
| 215 | |
| 216 | async get<T>( |
| 217 | url: string, |
| 218 | responseSchema?: ZodType<T>, |
| 219 | options?: Omit<RequestOptions, "method" | "responseType"> |
| 220 | ) { |
| 221 | return this.request(url, responseSchema, { |
| 222 | method: "GET", |
| 223 | headers: { |
| 224 | "Content-Type": "application/json", |
| 225 | }, |
| 226 | ...options, |
| 227 | responseType: ResponseType.JSON, |
| 228 | }); |
| 229 | } |
| 230 | |
| 231 | async post<T>( |
| 232 | url: string, |