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

Function BootstrapAdminRequest

rest/utilities_testing_bootstrap.go:100–102  ·  view source on GitHub ↗

BootstrapAdminRequest sends a request to the given server type, and returns the response.

(t *testing.T, sc *ServerContext, method, path, body string)

Source from the content-addressed store, hash-verified

98
99// BootstrapAdminRequest sends a request to the given server type, and returns the response.
100func BootstrapAdminRequest(t *testing.T, sc *ServerContext, method, path, body string) boostrapResponse {
101 return doBootstrapAdminRequest(t, sc, method, path, body, nil)
102}
103
104// BootstrapAdminRequestWithHeaders sends a request to the given server type with custom headers, and returns the response.
105func BootstrapAdminRequestWithHeaders(t *testing.T, sc *ServerContext, method, path, body string, headers map[string]string) boostrapResponse {

Calls 1

doBootstrapAdminRequestFunction · 0.85