Documentation ¶
Index ¶
- func GetToRemoveResponseHeaders() []string
- func New(ctx context.Context, next http.Handler, config *Config, name string) (http.Handler, error)
- func NewBodyDroppingResponseWriter(w http.ResponseWriter) http.ResponseWriter
- func TestServeHTTP_Get(t *testing.T)
- func TestServeHTTP_Head(t *testing.T)
- func TestServeHTTP_Post(t *testing.T)
- type BodyDroppingResponseWriter
- func (w *BodyDroppingResponseWriter) CloseNotify() <-chan bool
- func (w *BodyDroppingResponseWriter) Flush()
- func (w *BodyDroppingResponseWriter) Header() http.Header
- func (w *BodyDroppingResponseWriter) Unwrap() http.ResponseWriter
- func (w *BodyDroppingResponseWriter) Write(bytes []byte) (int, error)
- func (w *BodyDroppingResponseWriter) WriteHeader(statusCode int)
- type Config
- type HeadToGetPlugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetToRemoveResponseHeaders ¶
func GetToRemoveResponseHeaders() []string
func NewBodyDroppingResponseWriter ¶
func NewBodyDroppingResponseWriter(w http.ResponseWriter) http.ResponseWriter
func TestServeHTTP_Get ¶
func TestServeHTTP_Head ¶
func TestServeHTTP_Post ¶
Types ¶
type BodyDroppingResponseWriter ¶
type BodyDroppingResponseWriter struct {
http.ResponseWriter
}
func (*BodyDroppingResponseWriter) CloseNotify ¶
func (w *BodyDroppingResponseWriter) CloseNotify() <-chan bool
func (*BodyDroppingResponseWriter) Flush ¶
func (w *BodyDroppingResponseWriter) Flush()
func (*BodyDroppingResponseWriter) Header ¶
func (w *BodyDroppingResponseWriter) Header() http.Header
func (*BodyDroppingResponseWriter) Unwrap ¶
func (w *BodyDroppingResponseWriter) Unwrap() http.ResponseWriter
func (*BodyDroppingResponseWriter) Write ¶
func (w *BodyDroppingResponseWriter) Write(bytes []byte) (int, error)
func (*BodyDroppingResponseWriter) WriteHeader ¶
func (w *BodyDroppingResponseWriter) WriteHeader(statusCode int)
type Config ¶
type Config struct {
PutOriginalMethodInHeader string
}
Config the plugin configuration.
func CreateConfig ¶
func CreateConfig() *Config
CreateConfig creates the DEFAULT plugin configuration - no access to config yet!
type HeadToGetPlugin ¶
type HeadToGetPlugin struct {
// contains filtered or unexported fields
}
HeadToGetPlugin header
func (*HeadToGetPlugin) ServeHTTP ¶
func (t *HeadToGetPlugin) ServeHTTP(rw http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.