mw-contenttype: github.com/gobuffalo/mw-contenttype Index | Files

package contenttype

import "github.com/gobuffalo/mw-contenttype"

Index

Package Files

content_type.go

func Add Uses

func Add(s string) buffalo.MiddlewareFunc

Add will add a secondary content type to a request. If no content type is sent by the client the default will be set, otherwise the client's content type will be used.

func Set Uses

func Set(s string) buffalo.MiddlewareFunc

Set on the request to desired type. This will override any content type sent by the client.

Package contenttype imports 1 packages (graph) and is imported by 4 packages. Updated 2019-03-07. Refresh now. Tools for package owners.