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