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

Method appendMetadata

internal/codespaces/rpc/invoker.go:163–165  ·  view source on GitHub ↗

Appends the authentication token to the gRPC context

(ctx context.Context)

Source from the content-addressed store, hash-verified

161
162// Appends the authentication token to the gRPC context
163func (i *invoker) appendMetadata(ctx context.Context) context.Context {
164 return metadata.AppendToOutgoingContext(ctx, "Authorization", "Bearer token")
165}
166
167// Starts a remote JupyterLab server to allow the user to connect to the codespace via JupyterLab in their browser
168func (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