Documentation ¶
Index ¶
- func Contains(s []string, str string) bool
- func IsRespError(r *http.Response) bool
- func IsValidPath(path string) bool
- func MakeServerFromMux(mux http.Handler) *http.Server
- func NewBasicClient() http.Client
- func NewTlsClient() http.Client
- func RunInternalServer(srv *http.Server, addr string, service string)
- func RunPublicServer(srv *http.Server, addr string, service string)
- func WriteResponse(w http.ResponseWriter, message string, status int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsRespError ¶
func IsValidPath ¶
func MakeServerFromMux ¶
Set timeouts so that a slow or malicious client doesn't hold resources forever
func NewBasicClient ¶
func NewTlsClient ¶
func WriteResponse ¶
func WriteResponse(w http.ResponseWriter, message string, status int)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.