示例#1
0
def send_json(Body, etag=None):
    resp = BCResponse(json.dumps(Body))
    resp.add_etag()
    resp.headers['content-type'] = 'application/json'
    return resp
示例#2
0
def send_sioc(data):
    resp = BCResponse(data)
    resp.add_etag()
    resp.headers['content-type'] = 'application/rdf+xml'
    return resp