MCPcopy Create free account
hub / github.com/coder/agentapi / assertSSEHeaders

Function assertSSEHeaders

lib/httpapi/server_test.go:651–659  ·  view source on GitHub ↗
(t testing.TB, resp *http.Response)

Source from the content-addressed store, hash-verified

649}
650
651func assertSSEHeaders(t testing.TB, resp *http.Response) {
652 t.Helper()
653 assert.Equal(t, "no-cache, no-store, must-revalidate", resp.Header.Get("Cache-Control"))
654 assert.Equal(t, "no-cache", resp.Header.Get("Pragma"))
655 assert.Equal(t, "0", resp.Header.Get("Expires"))
656 assert.Equal(t, "no", resp.Header.Get("X-Accel-Buffering"))
657 assert.Equal(t, "no", resp.Header.Get("X-Proxy-Buffering"))
658 assert.Equal(t, "keep-alive", resp.Header.Get("Connection"))
659}
660
661func TestServer_UploadFiles(t *testing.T) {
662 t.Parallel()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected