MCPcopy Index your code
hub / github.com/github/github-mcp-server / close

Method close

internal/oauth/callback.go:136–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134}
135
136func (cs *callbackServer) close() {
137 shutdownCtx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
138 defer cancel()
139 _ = cs.server.Shutdown(shutdownCtx)
140 _ = cs.listener.Close()
141}
142
143func renderSuccess(w http.ResponseWriter) {
144 w.Header().Set("Content-Type", "text/html; charset=utf-8")

Callers 2

waitMethod · 0.95
beginPKCEMethod · 0.80

Calls 1

CloseMethod · 0.80

Tested by

no test coverage detected