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

Method ServeHTTP

coderd/aibridged/aibridged_test.go:599–603  ·  view source on GitHub ↗
(rw http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

597}
598
599func (h *mockHandler) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
600 h.headersReceived = r.Header.Clone()
601 rw.WriteHeader(http.StatusOK)
602 _, _ = rw.Write([]byte(r.URL.Path))
603}
604
605// TestServeHTTP_ActorHeaders validates that actor headers are correctly forwarded to
606// upstream AI providers when SendActorHeaders is enabled in the provider configuration.

Callers 3

TestRoutingFunction · 0.45

Calls 3

WriteMethod · 0.65
CloneMethod · 0.45
WriteHeaderMethod · 0.45

Tested by

no test coverage detected