You can define get, post, put, head, options, delete, trace methods,
which will be called in response to the corresponding HTTP requests.
You can't define custom types of requests with webapp.  You may be
able to extend the HTTP specification using pure CGI, but you probably
don't want to.

You can certainly define other functions and call them from your
handlers.  In your example, you get method could do self.my_function()
to call that function.

On Jun 30, 2:26 pm, Leanan <[email protected]> wrote:
> This may sound silly, but can I define something other than get and
> post methods in a handler?  IE:
>
> class My_Handler(webapp.RequestHandler):
>   def get(self):
>     #Stuff
>
>   def post(self):
>     #Stuff
>
>   def my_function(self):
>     #Stuff
>
> If so, how exactly do I get things to go to my_function()?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to