set_default_content_type_middleware

package
v1.0.60 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetContentType

func SetContentType(c *gin.Context)

SetContentType is middleware for Gin that will set a default content type. If the "Content-Type" header is not set, this will default it to

c.Request.Header.Set("Content-Type", "application/x-www-form-urlencoded")

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL