// Fetch the context
772435
func (req *Request) Context() (c context.Context) {
	c, _ = req.GetValue(HTTP_REQUEST_CONTEXT).(context.Context)
	return
}
557180
func (cg *ContextGroup) GET(path string, handler http.HandlerFunc) {
	cg.Handle("GET", path, handler)
}
201475
func (s *ScrollService) FetchSourceContext(fetchSourceContext *FetchSourceContext) *ScrollService {
	s.ss = s.ss.FetchSourceContext(fetchSourceContext)
	return s
}
239101
func (s *SearchService) FetchSourceContext(fetchSourceContext *FetchSourceContext) *SearchService {
	s.searchSource = s.searchSource.FetchSourceContext(fetchSourceContext)
	return s
}
206568
func (s *StatusEvent) GetContext() string {
	if s == nil || s.Context == nil {
		return ""
	}
	return *s.Context
}
483871
func (c *StartCall) Context(ctx context.Context) *StartCall {
	c.ctx_ = ctx
	return c
}
852593
func (r *ResourceDefinition) Context() string {
	if r.Name != "" {
		return fmt.Sprintf("resource %#v", r.Name)
	}
	return "unnamed resource"
}
243239
func (c *ReimportCall) Context(ctx context.Context) *ReimportCall {
	c.ctx_ = ctx
	return c
}
1051703
func (s *RemoteStore) getContext() (context.Context, context.CancelFunc) {
	return context.WithTimeout(context.Background(), s.timeout)
}
1016726
func (n *NamedStmt) GetContext(ctx context.Context, dest interface{}, arg interface{}) error {
	r := n.QueryRowxContext(ctx, arg)
	return r.scanAny(dest, false)
}
407201
func (c *UnitStateGetCall) Context(ctx context.Context) *UnitStateGetCall {
	c.ctx_ = ctx
	return c
}
207621
func (c *PollCall) Context(ctx context.Context) *PollCall {
	c.ctx_ = ctx
	return c
}
460822
func (c *SearchCall) Context(ctx context.Context) *SearchCall {
	c.ctx_ = ctx
	return c
}
164427
func (c *AppListCall) Context(ctx context.Context) *AppListCall {
	c.ctx_ = ctx
	return c
}
507311
func Get(r *http.Request) *Context {

	// get the context bound to the http.Request
	if v, ok := r.Body.(*wrapper); ok {
		return v.context
	}

	// create a new context
	c := Context{ }
	c.Params = make(Params)
	c.Values = make(Values)
	c.req = r

	// wrap the request and bind the context
	wrapper := wrap(r)
	wrapper.context = &c
	return &c
}
528193
func (d *Context) GetContext(index int) *Context {
	return contextFromPointer(C.duk_get_context(d.duk_context, C.duk_idx_t(index)))
}
351326
func (c *GetBucketCall) Context(ctx context.Context) *GetBucketCall {
	c.ctx_ = ctx
	return c
}