PostStreamWithContentType POSTs a streaming body (typically an *os.File for a multi-GiB bundle import) without buffering the full payload in memory client-side. Mirrors the server's streaming import path — together they keep import memory bounded by the largest single blob (~25 MiB) rather than the
(path string, body io.Reader, contentType string, result interface{})
| 2072 | // import path — together they keep import memory bounded by the |
| 2073 | // largest single blob (~25 MiB) rather than the full bundle size. |
| 2074 | func (c *Client) PostStreamWithContentType(path string, body io.Reader, contentType string, result interface{}) error { |
| 2075 | _, err := c.PostStreamWithContentTypeHeaders(path, body, contentType, result) |
| 2076 | return err |
| 2077 | } |
| 2078 | |
| 2079 | // PostStreamWithContentTypeHeaders is PostStreamWithContentType, also returning |
| 2080 | // the response headers. |
nothing calls this directly
no test coverage detected