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

Method SendRequest

rest/utilities_testing.go:664–666  ·  view source on GitHub ↗
(method, resource string, body string)

Source from the content-addressed store, hash-verified

662}
663
664func (rt *RestTester) SendRequest(method, resource string, body string) *TestResponse {
665 return rt.Send(Request(method, rt.mustTemplateResource(resource), body))
666}
667
668func (rt *RestTester) SendRequestWithHeaders(method, resource string, body string, headers map[string]string) *TestResponse {
669 req := Request(method, rt.mustTemplateResource(resource), body)

Callers 15

TestGuestReadOnlyFunction · 0.95
TestDocEtagFunction · 0.95
TestDocAttachmentFunction · 0.95
TestManualAttachmentFunction · 0.95
TestSessionLoginFunction · 0.95
TestCustomCookieNameFunction · 0.95

Calls 3

SendMethod · 0.95
mustTemplateResourceMethod · 0.95
RequestFunction · 0.85

Tested by 15

TestGuestReadOnlyFunction · 0.76
TestDocEtagFunction · 0.76
TestDocAttachmentFunction · 0.76
TestManualAttachmentFunction · 0.76
TestSessionLoginFunction · 0.76
TestCustomCookieNameFunction · 0.76