MCPcopy Create free account
hub / github.com/XTLS/Go / Context

Method Context

common.go:452–454  ·  view source on GitHub ↗

Context returns the context of the handshake that is in progress. This context is a child of the context passed to HandshakeContext, if any, and is canceled when the handshake concludes.

()

Source from the content-addressed store, hash-verified

450// This context is a child of the context passed to HandshakeContext,
451// if any, and is canceled when the handshake concludes.
452func (c *ClientHelloInfo) Context() context.Context {
453 return c.ctx
454}
455
456// CertificateRequestInfo contains information from a server's
457// CertificateRequest message, which is used to demand a certificate and proof

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected