Bases: object
The WSGI middleware that overrides HTTP methods for old browsers. HTML4 and XHTML only specify POST and GET as HTTP methods that <form> elements can use. HTTP itself however supports a wider range of methods, and it makes sense to support them on ther server.
If you however want to make a form submission with PUT for instance, and you are using a client that does not support it, you can override it by using this middleware and appending ?__method__=PUT to the <form> action.
<form action="?__method__=put" method="post">
...
</form>
Parameters: | application (callable object) – WSGI application to wrap |
---|
See also
Bases: object
A WSGI middleware that overwrites every request’s Host header (that is, HTTP_HOST environment) to the specific host name. It is useful when WSGI server is running under proxy server.
Parameters: |
|
---|