 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package redirect is middleware for redirecting certain requests to other locations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Redirect ¶
type Redirect struct {
	Next  httpserver.Handler
	Rules []Rule
}
    Redirect is middleware to respond with HTTP redirects
type Rule ¶
type Rule struct {
	FromScheme   func() string
	FromPath, To string
	Code         int
	Meta         bool
	httpserver.RequestMatcher
}
    Rule describes an HTTP redirect rule.
 Click to show internal directories. 
   Click to hide internal directories.