grafana/pkg/web
sh0rez 3ca3a59079
pkg/web: remove dependency injection (#49123)
* pkg/web: store http.Handler internally

* pkg/web: remove injection

Removes any injection code from pkg/web.

It already was no longer functional, as we already only injected into
`http.Handler`, meaning we only inject ctx.Req and ctx.Resp.

Any other types (*Context, *ReqContext) were already accessed using the
http.Request.Context.Value() method.

* *: remove type mappings

Removes any call to the previously removed TypeMapper, as those were
non-functional already.

* pkg/web: remove Context.Invoke

was no longer used outside of pkg/web and also no longer functional
2022-05-24 15:35:08 -04:00
..
webtest pkg/web: remove dependency injection (#49123) 2022-05-24 15:35:08 -04:00
binding_test.go Add nil checks to HTTP request validation dispatch (#44371) 2022-01-24 16:43:44 +01:00
binding.go Security: Sync security changes on main (#45083) 2022-02-09 13:44:38 +01:00
context_test.go Chore: sanitize values before being logged from request headers (#49245) 2022-05-23 14:18:33 -03:00
context.go pkg/web: remove dependency injection (#49123) 2022-05-24 15:35:08 -04:00
macaron.go pkg/web: remove dependency injection (#49123) 2022-05-24 15:35:08 -04:00
macaron.s pkg/web: restrict handler types (#48495) 2022-05-20 12:45:18 -04:00
render.go Chore: Move remaining web framework code to pkg/web, remove macaron binding module (#43018) 2021-12-13 15:56:14 +01:00
response_writer_test.go Chore: Move remaining web framework code to pkg/web, remove macaron binding module (#43018) 2021-12-13 15:56:14 +01:00
response_writer.go Chore: Move remaining web framework code to pkg/web, remove macaron binding module (#43018) 2021-12-13 15:56:14 +01:00
router.go pkg/web: remove dependency injection (#49123) 2022-05-24 15:35:08 -04:00
tree.go Chore: Move remaining web framework code to pkg/web, remove macaron binding module (#43018) 2021-12-13 15:56:14 +01:00
web.go Chore: Move remaining web framework code to pkg/web, remove macaron binding module (#43018) 2021-12-13 15:56:14 +01:00