Closed
Description
Please answer these questions before submitting your issue. Thanks!
-
What version of Go are you using (
go version
)?
go version go1.7beta2 darwin/amd64 -
What did you do?
I'am trying to setup my session store and pass it to handlers via http.Request.Context() -
What did you expect to see?
Some way to do this.
Like:ctx := context.WithValue(context.Background(), seesionStoreKey, SessionStore{}) s := &http.Server{ BaseContex: ctx } s.ListenAndServe() #And use it inside handler: store, ok := r.Context().Value(seesionStoreKey).(SessionStore)
-
What did you see instead?
I can't change base http.Request.Context()