Letting Browsers use all of the RESTful Methods in Google App Engine
So there was much talk and whathave you about Google’s new App Engine and after viewing the tutorials and reading the documentation, I thought it was pretty rad too. Because I was using rack for some previous stuff, WSGI felt right at home (probably because rack was modeled after WSGI). There was one thing that bothered me however. When writing a class using their webapp framework there isn’t any magic param name, like _method, that I could use to mock requests methods like DELETE and PUT since the browser doesn’t support those HTTP methods.
Well my friends, fear not. If you enjoy the sweet freedom of RESTful urls, I’m here to help. Since this is all built on top of WSGI, we can create a some new Middleware to sit before the application to resolve this little issue.