Documentation ¶
Index ¶
- func CreateCookie(name, value, domain, path string, maxage int, httpOnly bool) (*http.Cookie, error)
- func DebugRequest(ip, port, endpoint string) error
- func ServeCookie(ip, port, endpoint, name, value, domain, path string, maxage int, ...) error
- func ServeHeaders(headersList []string, ip, port, endpoint string) error
- func SetHeaders(headersList []string, w http.ResponseWriter) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCookie ¶
func CreateCookie(name, value, domain, path string, maxage int, httpOnly bool) (*http.Cookie, error)
CreateCookie is delegated to initialize and set a cookie with the given value
func DebugRequest ¶
DebugRequest is delegated to print the request data for debug purpouse
func ServeCookie ¶
func ServeCookie(ip, port, endpoint, name, value, domain, path string, maxage int, httpOnly bool) error
ServeCookie is delegated to set a cookie and shutdown the server after the first call
func ServeHeaders ¶ added in v0.0.8
ServeHeaders is delegated to spawn a webserver for set the input headers into the (request) response
func SetHeaders ¶ added in v0.0.8
func SetHeaders(headersList []string, w http.ResponseWriter) error
SetHeaders is delegated to set the given (key-value) headers list into the response, the webserver will die once request is parsed
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.