http

package
v3.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package http allows populating a coraza transaction with information from an HTTP Request.

Index

Constants

This section is empty.

Variables

View Source
var (
	NoopLogger = func(msg string, args ...interface{}) {}
	StdLogger  = log.Printf
)

Functions

func WrapHandler

func WrapHandler(waf coraza.WAF, l Logger, h http.Handler) http.Handler

Types

type Logger

type Logger func(msg string, args ...interface{})

type ResponseWriterStatusCodeGetter

type ResponseWriterStatusCodeGetter interface {
	http.ResponseWriter
	StatusCode() int
}

ResponseWriter adds Proto to http.ResponseWriter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL