package rewrite

import "github.com/streadway/handy/rewrite"

Package rewrite contains filters to handle HTTP rewrites

Index

Functions

func Method

func Method(next http.Handler) http.Handler

Method modifies the http.Request.Method for POST requests to the form value "_method" only if that value is one of PUT, PATCH or DELETE.

Source Files

method.go

Version
v0.0.0-20200128134331-0f66f006fb2e (latest)
Published
Jan 28, 2020
Platform
linux/amd64
Imports
1 packages
Last checked
2 months ago

Tools for package owners.