Go package for analyzing HTTP requests.
Write the next text in concole
go get github.com/aqvilov/http-request-analyzer
import "github.com/aqvilov/http-request-analyzer"
- Method
- URL
- URL Path
- HOST
- Raw query
- RemoteAddr 7.Status code 8.User-Agent 9.Headers
func main() {
// your code before ( with all handlefunc and added r *http.Request )
analyzer.PrintRequest(r)
}
An example of usage is shown in example.go
Aqvilov.