logging

package
v0.0.0-...-9ac85d6 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatHTTPRequest

func FormatHTTPRequest(r *http.Request) string

FormatHTTPRequest returns a formatted and readable string containing information of given HTTP request.

func FormatHTTPRequestWithSeparator

func FormatHTTPRequestWithSeparator(r *http.Request, separator string) string

FormatHTTPRequestWithSeparator returns a formatted and readable string containing information of given HTTP request, separated by given separated.

func RequestHeaders

func RequestHeaders(r *http.Request) string

RequestHeaders returns a string containing request header for the given HTTP request.

func RequestMethodAndURL

func RequestMethodAndURL(r *http.Request) string

RequestMethodAndURL return string containing method(GET, POST, PATCH etc) and string given an HTTP request.

Types

This section is empty.

Jump to

Keyboard shortcuts

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