Did I find the right examples for you? yes no

All Samples(26)  |  Call(9)  |  Derive(0)  |  Import(17)
Raised by a resource when faced with a strange request method.

RFC 2616 (HTTP 1.1) gives us two choices when faced with this situtation:
If the type of request is known to us, but not allowed for the requested
resource, respond with NOT_ALLOWED.  Otherwise, if the request is something
we don't know how to deal with in any case, respond with NOT_IMPLEMENTED.

When this exception is raised by a Resource's render method, the server
will make the appropriate response.
(more...)

src/o/h/oh-mainline-HEAD/vendor/packages/twisted/twisted/web/resource.py   oh-mainline(Download)
            # This needs to be here until the deprecated subclasses of the
            # below three error resources in twisted.web.error are removed.
            from twisted.web.error import UnsupportedMethod
            allowedMethods = (getattr(self, 'allowedMethods', 0) or
                              _computeAllowedMethods(self))
            raise UnsupportedMethod(allowedMethods)

src/s/u/SubliminalCollaborator-HEAD/libs/twisted/web/resource.py   SubliminalCollaborator(Download)
            # This needs to be here until the deprecated subclasses of the
            # below three error resources in twisted.web.error are removed.
            from twisted.web.error import UnsupportedMethod
            allowedMethods = (getattr(self, 'allowedMethods', 0) or
                              _computeAllowedMethods(self))
            raise UnsupportedMethod(allowedMethods)

src/u/n/UnitScan-HEAD/twisted/web/resource.py   UnitScan(Download)
            # This needs to be here until the deprecated subclasses of the
            # below three error resources in twisted.web.error are removed.
            from twisted.web.error import UnsupportedMethod
            allowedMethods = (getattr(self, 'allowedMethods', 0) or
                              _computeAllowedMethods(self))
            raise UnsupportedMethod(allowedMethods)

src/t/i/tidalstream-apiserver-1.0.0-beta/apiserver/resource.py   tidalstream-apiserver(Download)
            # This needs to be here until the deprecated subclasses of the
            # below three error resources in twisted.web.error are removed.
            from twisted.web.error import UnsupportedMethod
            allowedMethods = (getattr(self, 'allowedMethods', 0) or
                              _computeAllowedMethods(self))
            raise UnsupportedMethod(allowedMethods)

src/t/i/tidalstream-sdfs-1.0.0-beta/sdfs/resource.py   tidalstream-sdfs(Download)
                # This needs to be here until the deprecated subclasses of the
                # below three error resources in twisted.web.error are removed.
                from twisted.web.error import UnsupportedMethod
                allowedMethods = (getattr(self, 'allowedMethods', 0) or
                                  resource._computeAllowedMethods(self))
                raise UnsupportedMethod(allowedMethods)

src/o/h/oh-mainline-HEAD/vendor/packages/twisted/twisted/web/server.py   oh-mainline(Download)
from twisted import copyright
from twisted.web import util as webutil, resource
from twisted.web.error import UnsupportedMethod
from twisted.web.microdom import escape
 

src/t/a/tangelo-HEAD/tangelo/tangelo/autobahn/resource.py   tangelo(Download)
   ## starting from Twisted 12.2, NoResource has moved
   from twisted.web.resource import NoResource
from twisted.web.error import UnsupportedMethod
from twisted.web.resource import IResource, Resource
from twisted.web.server import NOT_DONE_YET

src/t/a/tangelo-0.6.1/tangelo/autobahn/resource.py   tangelo(Download)
   ## starting from Twisted 12.2, NoResource has moved
   from twisted.web.resource import NoResource
from twisted.web.error import UnsupportedMethod
from twisted.web.resource import IResource, Resource
from twisted.web.server import NOT_DONE_YET

src/a/u/autobahn_rce-0.6.0.5/autobahn/resource.py   autobahn_rce(Download)
   ## starting from Twisted 12.2, NoResource has moved
   from twisted.web.resource import NoResource  
from twisted.web.error import UnsupportedMethod
from twisted.web.resource import IResource, Resource
from twisted.web.server import NOT_DONE_YET

src/s/u/SubliminalCollaborator-HEAD/libs/twisted/web/server.py   SubliminalCollaborator(Download)
from twisted import copyright
from twisted.web import util as webutil, resource
from twisted.web.error import UnsupportedMethod
from twisted.web.microdom import escape
 

  1 | 2 | 3  Next