GitHub - martini-contrib/method: Martini HTTP method overriding via Header or form fields. (original) (raw)

Skip to content

Sign in

Appearance settings

View all features

View all solutions

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Sign in

Sign up

Appearance settings

martini-contrib / method Public

Martini HTTP method overriding via Header or form fields.

License

MIT license

13 stars 7 forks Branches Tags Activity

Star

Notifications You must be signed in to change notification settings

Additional navigation options

BranchesTags

Folders and files

Name Name Last commit message Last commit date
Latest commitHistory10 Commits
LICENSE LICENSE
README.md README.md
override.go override.go
override_test.go override_test.go
wercker.yml wercker.yml

Repository files navigation

method wercker status

Martini middleware/handler for handling http method overrides. This checks for the X-HTTP-Method-Override header and uses it if the original request method is POST. GET/HEAD methods shouldn't be overriden, hence they can't be overriden.

This is useful for REST APIs and services making use of many HTTP verbs, and when http clients don't support all of them.

API Reference

Usage

import ( "github.com/codegangsta/martini" "github.com/martini-contrib/method" )

func main() { m := martini.Classic() m.Use(method.Override()) m.Run() }

Authors

About

Martini HTTP method overriding via Header or form fields.

Resources

Readme

License

MIT license

Activity

Custom properties

Stars

13 stars

Watchers

3 watching

Forks

7 forks

Report repository

Releases

No releases published

Packages

No packages published

Contributors4

Languages