httputils

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: MIT Imports: 6 Imported by: 1

Documentation

Index

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

func DebugRequest

func DebugRequest(ip, port, endpoint string) error

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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