Returns the request body as a raw byte array.
()
| 1315 | |
| 1316 | // Returns the request body as a raw byte array. |
| 1317 | func (h *handler) readBody() ([]byte, error) { |
| 1318 | return io.ReadAll(h.requestBody) |
| 1319 | } |
| 1320 | |
| 1321 | // Parses a JSON request body, returning it as a Body map. |
| 1322 | func (h *handler) readJSON() (db.Body, error) { |
no outgoing calls
no test coverage detected