Documentation
¶
Overview ¶
Package httphandler is used to render webpages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FaviconHandler ¶
func FaviconHandler(w http.ResponseWriter, r *http.Request)
FaviconHandler serves the favicon.ico image for browsers. e.g. r.HandleFunc("/favicon.ico", FaviconHandler).Methods("GET")
func GenerateLinkHandler ¶
func GenerateLinkHandler(w http.ResponseWriter, r *http.Request)
GenerateLinkHandler renders the page when a Byte-Link is generated. e.g. r.HandleFunc("/", GenerateLinkHandler).Methods("POST")
func HomePageHandler ¶
func HomePageHandler(w http.ResponseWriter, r *http.Request)
HomePageHandler renders the home page. e.g. r.HandleFunc("/", HomePageHandler).Methods("GET")
func RedirectByteLinkHandler ¶
func RedirectByteLinkHandler(w http.ResponseWriter, r *http.Request)
RedirectByteLinkHandler attempts to re-route the request using a provided byte-link. e.g. r.HandleFunc("/{byteLink}", HomePageHandler).Methods("GET")
Types ¶
Click to show internal directories.
Click to hide internal directories.