REST, PUT and DELETE

11 görüntüleme
İlk okunmamış mesaja atla

Jos

okunmadı,
12 Kas 2007 13:12:3712.11.2007
alıcı Gluon Web Framework
Hey, glad to see the google group!

How might you allow the use of the HTTP verbs PUT and DELETE? I know a
fair number of people who build REST interfaces require these verbs...

mdip...@cs.depaul.edu

okunmadı,
12 Kas 2007 13:19:1912.11.2007
alıcı Gluon Web Framework
Try submit a rest request to a controller like

def index(): return HTML(BODY(BEAUTIFY(request.env))).xml()

You will see all environment variables been passed including the HTTP
header.

Massimo

mdip...@cs.depaul.edu

okunmadı,
12 Kas 2007 13:20:5312.11.2007
alıcı Gluon Web Framework
You may find convenient to write them to a file as well

def index():
open('/somewhere/request_log.html',
'w').write(HTML(BODY(BEAUTIFY(request.env))).xml())
return dict()


Tümünü yanıtla
Yazarı yanıtla
Yönlendir
0 yeni ileti