MCPcopy Index your code
hub / github.com/coder/coder / RoundTrip

Method RoundTrip

coderd/aibridge_test.go:39–45  ·  view source on GitHub ↗
(req *http.Request)

Source from the content-addressed store, hash-verified

37type handlerRoundTripper struct{ handler http.Handler }
38
39func (h *handlerRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
40 rec := httptest.NewRecorder()
41 h.handler.ServeHTTP(rec, req)
42 resp := rec.Result()
43 resp.Request = req
44 return resp, nil
45}
46
47// Verify that a factory stored on coderd.API.AIBridgeTransportFactory is
48// observable through the normal API lifecycle: cli/server.go registers it

Callers

nothing calls this directly

Calls 2

ServeHTTPMethod · 0.45
ResultMethod · 0.45

Tested by

no test coverage detected