Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DEFAULT_HEADER_READ_TIMEOUT time.Duration = 60 * time.Second DEFAULT_READ_TIMEOUT time.Duration = 600 * time.Second DEFAULT_WRITE_TIMEOUT time.Duration = 600 * time.Second DEFAULT_IDLE_TIMEOUT time.Duration = 600 * time.Second )
View Source
var DEFAULT_ROOT_PATH_CALLBACK = func(w http.ResponseWriter, req *http.Request) { w.Header().Add("Strict-Transport-Security", "max-age=63072000; includeSubDomains") w.Header().Set("Content-Type", "text/plain") w.Write([]byte("Welcome to the rest server\n")) }
Functions ¶
func NewHandleFunc ¶
func NewHandleFunc(handleFunc TLSHandleFunc, logger log.Logger) common.RestServer
Types ¶
type TLSHandleFunc ¶
type TLSHandleFunc func(*tls.Conn, common.RestServer)
Click to show internal directories.
Click to hide internal directories.