MCPcopy
hub / github.com/ContainerSSH/ContainerSSH / request

Method request

http/client_impl.go:178–187  ·  view source on GitHub ↗
(
	method string,
	path string,
	requestBody interface{},
	responseBody interface{},
)

Source from the content-addressed store, hash-verified

176}
177
178func (c *client) request(
179 method string,
180 path string,
181 requestBody interface{},
182 responseBody interface{},
183) (int, error) {
184 logger := c.logger.WithLabel("path", path)
185 u := c.config.URL + path
186 return c.requestURLWithLogger(method, u, requestBody, responseBody, logger)
187}
188
189func (c *client) createRequest(method string, path string, requestBody interface{}, logger log.Logger) (
190 *http.Request,

Callers 6

PutMethod · 0.95
PatchMethod · 0.95
DeleteMethod · 0.95
RequestMethod · 0.95
GetMethod · 0.95
PostMethod · 0.95

Calls 2

requestURLWithLoggerMethod · 0.95
WithLabelMethod · 0.65

Tested by

no test coverage detected