MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / readBody

Method readBody

rest/handler.go:1317–1319  ·  view source on GitHub ↗

Returns the request body as a raw byte array.

()

Source from the content-addressed store, hash-verified

1315
1316// Returns the request body as a raw byte array.
1317func (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.
1322func (h *handler) readJSON() (db.Body, error) {

Callers 13

handlePostResyncMethod · 0.95
handleProfilingMethod · 0.95
handleHeapProfilingMethod · 0.95
handleDbOnlineMethod · 0.95
handleSetLoggingMethod · 0.95
handleSGCollectMethod · 0.95
updatePrincipalMethod · 0.95
putReplicationMethod · 0.95
handleChangesMethod · 0.95
handlePutAttachmentMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected