Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IndexTemplateString ¶
func IndexTemplateString() string
Returns the html template string for the index page.
Types ¶
type RequestResponse ¶
type RequestResponse struct {
// IP address of the remote client
RemoteAddr string `json:"remoteAddress"`
// Port of the remote client
RemotePort string `json:"remotePort"`
// Host header
Host string `json:"host"`
// Request method
Method string `json:"method"`
// Request protocol
Proto string `json:"protocol"`
// Request headers
Header http.Header `json:"header"`
}
Contains the data extracted from the request and returned to the user.
func ExtractRequestData ¶
func ExtractRequestData(req *http.Request) *RequestResponse
Click to show internal directories.
Click to hide internal directories.