Versions in this module Expand all Collapse all v0 v0.6.3 Jun 26, 2021 Changes in this version + func CreateDefaultHttpClient() *http.Client v0.6.2 Jun 4, 2021 v0.6.1 Jun 2, 2021 v0.6.0 Jun 2, 2021 v0.5.1 Jun 2, 2021 v0.5.0 May 31, 2021 v0.4.9 May 31, 2021 v0.4.8 May 29, 2021 v0.4.7 May 29, 2021 v0.4.6 May 29, 2021 v0.4.5 May 29, 2021 v0.4.4 May 29, 2021 v0.4.3 May 22, 2021 v0.4.2 May 22, 2021 v0.4.1 May 22, 2021 v0.4.0 May 22, 2021 Changes in this version + func CheckRedirect(req *http.Request, via []*http.Request) error + func CleanOutAllSlashes(t string) string + func CreateError(w io.Writer, err error, message string, code int) error + func DoRequest(ctx context.Context, client *http.Client, method string, route string, ...) (*http.Request, *http.Response, error) + func GetFileMimeType(path string) string + func LetsEncryptTLS(http2 bool) (*autocert.Manager, *tls.Config) + func LoadTLS(cert, key string) (*tls.Config, error) + func ParseAuthorization(val string) (authType string, token string, err error) + func ParseTokens(val string) ([]string, error) + func ReduceMultipleSlashTo(t string, replace string) string + func ReduceMultipleSlashToOne(t string) string + type CloseErrorChannel struct + Error error + G string + T string + func (es *CloseErrorChannel) Close() + func (es *CloseErrorChannel) Err() error + func (es *CloseErrorChannel) Group() string + func (es *CloseErrorChannel) Topic() string + type ErrorHandler struct + Err error + func (es *ErrorHandler) Run() error + type NormalisedReader struct + func NewNormalisedReader(r io.Reader) *NormalisedReader + func (norm *NormalisedReader) Read(p []byte) (n int, err error) + type RequestErr struct + Code int + Message string + func (r *RequestErr) Error() string