View definition

func DefaultRequestContentType

Defined in github.com/emicklei/go-restful/request.go

Description

If ContentType is missing or */* is given then fall back to this type, otherwise a "Unable to unmarshal content of type:" response is returned. Valid values are restful.MIME_JSON and restful.MIME_XML Example:

restful.DefaultRequestContentType(restful.MIME_JSON)

DefaultRequestContentType is referenced in 2 repositories

github.com/dcos-labs/MongoDB github.com/emicklei/mora