package http
import "github.com/coreos/etcd/http"
Index ¶
- type CORSHandler
- type CORSInfo
- func NewCORSInfo(origins []string) (*CORSInfo, error)
- func (c CORSInfo) OriginAllowed(origin string) bool
- type LowerQueryParamsHandler
Types ¶
type CORSHandler ¶
func (*CORSHandler) ServeHTTP ¶
func (h *CORSHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
ServeHTTP adds the correct CORS headers based on the origin and returns immediately with a 200 OK if the method is OPTIONS.
type CORSInfo ¶
func NewCORSInfo ¶
func (CORSInfo) OriginAllowed ¶
OriginAllowed determines whether the server will allow a given CORS origin.
type LowerQueryParamsHandler ¶
func NewLowerQueryParamsHandler ¶
func NewLowerQueryParamsHandler(hdlr http.Handler) *LowerQueryParamsHandler
func (*LowerQueryParamsHandler) ServeHTTP ¶
func (h *LowerQueryParamsHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
Source Files ¶
- Version
- v0.4.6
- Published
- Jul 29, 2014
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 11 minutes ago –
Tools for package owners.