View definition

func ResolveFormat

Defined in github.com/revel/revel/http.go

Description

ResolveFormat maps the request's Accept MIME type declaration to a Request.Format attribute, specifically "html", "xml", "json", or "txt", returning a default of "html" when Accept header cannot be mapped to a value above.

ResolveFormat is referenced in 1 repository

github.com/revel/revel