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