package
0.0.0-20240727104708-c2d1215a6a24
Repository: https://github.com/google/go-safeweb.git
Documentation: pkg.go.dev

# Functions

NewFakeResponseWriter creates a new safehttp.ResponseWriter implementation and a httptest.ResponseRecorder, for testing purposes only.
NewRequest returns a new incoming server Request, suitable for passing to an http.Handler for testing.

# Structs

FakeDispatcher provides a minimal implementation of the Dispatcher to be used for testing Interceptors.
FakeResponseWriter creates a fake safehttp.ResponseWriter implementation.