add something to print out a http PB
This commit is contained in:
parent
3306e3cbbc
commit
1905db1f6a
|
@ -2,6 +2,8 @@ package httppb
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
|
"go.wit.com/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (pb *HttpRequest) DumpRemoteAddr() string {
|
func (pb *HttpRequest) DumpRemoteAddr() string {
|
||||||
|
@ -21,6 +23,7 @@ func (pb *HttpRequest) DumpUserAgent() string {
|
||||||
|
|
||||||
// todo: convert this code
|
// todo: convert this code
|
||||||
func (pb *HttpRequest) DumpClient() {
|
func (pb *HttpRequest) DumpClient() {
|
||||||
|
log.Infof("%s %s %s\n", pb.Host, pb.URL, pb.RemoteAddr)
|
||||||
/*
|
/*
|
||||||
var host, url, proto, addr, agent string
|
var host, url, proto, addr, agent string
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue