Method
post
(path: string, body?: unknown, opts?: { allowCodes?: number[] })
Source from the content-addressed store, hash-verified
| 175 | } |
| 176 | |
| 177 | async post<T>(path: string, body?: unknown, opts?: { allowCodes?: number[] }): Promise<T> { |
| 178 | return this.request<T>('POST', path, body, undefined, opts?.allowCodes); |
| 179 | } |
| 180 | |
| 181 | /** Send multipart/form-data (FormData). Does NOT set Content-Type — browser sets it with boundary. */ |
| 182 | async postForm<T>(path: string, formData: FormData): Promise<T> { |
Callers
nothing calls this directly
Tested by
no test coverage detected