Registry / web-framework / gobuffalo-mw-contenttype

gobuffalo-mw-contenttype

JSON →
library1.0.2gogounverified

A Buffalo middleware for setting and managing Content-Type headers in HTTP responses.

go get github.com/gobuffalo/mw-contenttype
INSTALL
IMPORT
SIG · GOBUFFALO-MW-CONTE
G
gobuffalo-mw-contenttype
web-frameworkgov1.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

contenttype
github.com/gobuffalo/mw-contenttype

Sets the Content-Type header to application/json for all responses.

package main import ( "github.com/gobuffalo/buffalo" "github.com/gobuffalo/mw-contenttype" ) func main() { app := buffalo.New(buffalo.Options{}) app.Use(contenttype.Set("application/json")) app.Serve() }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
7
Resources
gobuffalo-mw-contenttype — go get gobuffalo-mw-contenttype · libregistry