Versions in this module Expand all Collapse all v1 v1.0.0 Sep 4, 2018 Changes in this version + const HTML + const JSON + const Language + const XML + const XML2 + var DataWriters = map[string]routing.DataWriter + func LanguageNegotiator(languages ...string) routing.Handler + func NegotiateContentType(ctx *fasthttp.RequestCtx, offers []string, defaultOffer string) string + func TypeNegotiator(formats ...string) routing.Handler + type AcceptRange struct + Parameters map[string]string + Subtype string + Type string + Weight float64 + func AcceptMediaTypes(ctx *fasthttp.RequestCtx) []AcceptRange + func ParseAcceptRange(accept string) AcceptRange + func ParseAcceptRanges(accepts string) []AcceptRange + func (a AcceptRange) RawString() string + type HTMLDataWriter struct + func (w *HTMLDataWriter) SetHeader(h *fasthttp.ResponseHeader) + func (w *HTMLDataWriter) Write(res io.Writer, data interface{}) error + type JSONDataWriter struct + func (w *JSONDataWriter) SetHeader(h *fasthttp.ResponseHeader) + func (w *JSONDataWriter) Write(res io.Writer, data interface{}) (err error) + type XMLDataWriter struct + func (w *XMLDataWriter) SetHeader(h *fasthttp.ResponseHeader) + func (w *XMLDataWriter) Write(res io.Writer, data interface{}) (err error) Other modules containing this package github.com/jackwhelpton/fasthttp-routing/v2