package
1.24.0-dev
Repository: https://github.com/go-gitea/gitea.git
Documentation: pkg.go.dev

# Functions

GuessCurrentAppURL tries to guess the current full app URL (with sub-path) by http headers.
GuessCurrentHostURL tries to guess the current full host URL (no sub-path) by http headers, there is no trailing slash.
IsRelativeURL detects if a URL is relative (no scheme or host).
MakeAbsoluteURL tries to make a link to an absolute URL: * If link is empty, it returns the current app URL.
NewRequest returns *Request with specific method.
ServeSetHeaders sets necessary content serve headers.
TimeoutDialer returns functions of connection dialer with timeout settings for http.Transport Dial field.

# Variables

# Structs

Request provides more useful methods for requesting one url than http.Request.
Settings is the default settings for http client.