MCPcopy Index your code
hub / github.com/cli/cli / appendMetadata

Method appendMetadata

internal/codespaces/rpc/invoker.go:164–166  ·  view source on GitHub ↗

Appends the authentication token to the gRPC context

(ctx context.Context)

Source from the content-addressed store, hash-verified

162
163// Appends the authentication token to the gRPC context
164func (i *invoker) appendMetadata(ctx context.Context) context.Context {
165 return metadata.AppendToOutgoingContext(ctx, "Authorization", "Bearer token")
166}
167
168// Starts a remote JupyterLab server to allow the user to connect to the codespace via JupyterLab in their browser
169func (i *invoker) StartJupyterServer(ctx context.Context) (port int, serverUrl string, err error) {

Callers 4

StartJupyterServerMethod · 0.95
RebuildContainerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected