// FetchContext sends the Request to a whois server.
// If ctx cancels or times out before the request completes, it will return an error.
351592
func (c *Client) FetchContext(ctx context.Context, req *Request) (*Response, error) {
	if c.Timeout > 0 {
		var cancel context.CancelFunc
		ctx, cancel = context.WithTimeout(ctx, c.Timeout)
		defer cancel()
	}
	if req.URL != "" {
		return c.fetchHTTP(ctx, req)
	}
	return c.fetchWhois(ctx, req)
}
690937
func (o *GetConsentRequestParams) WithContext(ctx context.Context) *GetConsentRequestParams {
	o.SetContext(ctx)
	return o
}
37685
func (call *GetGroupMemberProfileCall) WithContext(ctx context.Context) *GetGroupMemberProfileCall {
	call.ctx = ctx
	return call
}
557325
func (c *UnitsGetCall) Context(ctx context.Context) *UnitsGetCall {
	c.ctx_ = ctx
	return c
}
698352
func HeaderFromContext(ctx context.Context) (http.Header, bool) {
	if ctx == nil {
		panic("Context cannot be nil")
	}

	requestValue := ctx.Value(requestHeaderKey)
	if requestValue == nil {
		return nil, false
	}

	header, ok := requestValue.(http.Header)
	return header, ok
}
1276614
func (c *CancelBatchCall) Context(ctx context.Context) *CancelBatchCall {
	c.ctx_ = ctx
	return c
}
601077
func (r *Request) WithContext(ctx context.Context) *Request {
	if ctx == nil {
		panic("nil context")
	}
	r2 := r.copy()
	r2.ctx = ctx
	r2.cancelCtx = nil
	return r2
}
630057
func GetContext(err error, key string) interface{} {
	if e, ok := err.(withContext); ok {
		return e.Get(key)
	}
	return ""
}
894619
func (call *GetGroupMemberIDsCall) WithContext(ctx context.Context) *GetGroupMemberIDsCall {
	call.ctx = ctx
	return call
}
848893
func (q *Queryx) WithContext(ctx context.Context) *Queryx {
	q.Query = q.Query.WithContext(ctx)
	return q
}
728611
func (engine *Engine) HandleContext(c *Context) {
	oldIndexValue := c.index
	c.reset()
	engine.handleHTTPRequest(c)

	c.index = oldIndexValue
}
75880
func (r *Router) ServeHTTPContext(ctx context.Context, w http.ResponseWriter, req *http.Request) error {
	route, h, vars := r.Handler(req)
	ctx = WithVars(ctx, vars)
	ctx = WithRoute(ctx, route)
	return h.ServeHTTPContext(ctx, w, req)
}
325533
func HTTPToContext() http.RequestFunc {
	return func(ctx context.Context, r *stdhttp.Request) context.Context {
		token, ok := extractTokenFromAuthHeader(r.Header.Get("Authorization"))
		if !ok {
			return ctx
		}

		return context.WithValue(ctx, JWTTokenContextKey, token)
	}
}
1051703
func (s *RemoteStore) getContext() (context.Context, context.CancelFunc) {
	return context.WithTimeout(context.Background(), s.timeout)
}
1197534
func (call *GetMessageQuotaCall) WithContext(ctx context.Context) *GetMessageQuotaCall {
	call.ctx = ctx
	return call
}
351326
func (c *GetBucketCall) Context(ctx context.Context) *GetBucketCall {
	c.ctx_ = ctx
	return c
}
109567
func (db *DB) GetContext(ctx context.Context, dest interface{}, keys ...interface{}) error {
	return getObject(ctx, db, db, dest, keys)
}