July 2017
Beginner to intermediate
358 pages
10h 54m
English
The RedirectHandler function returns a request handler that redirects each request it receives to the given URI using the given status code. The provided code should be in the 3xx range and is usually StatusMovedPermanently, StatusFound, or StatusSeeOther:
func RedirectHandler(url string, code int) Handler
Read now
Unlock full access