neo4j :: JsonCurlRequest :: init_headers
# init HTTP headers for Neo4j REST API
protected fun init_headers do
headers = new HeaderMap
headers["Accept"] = "application/json; charset=UTF-8"
headers["Transfer-Encoding"] = "chunked"
headers["X-Stream"] = "true"
if auth != null then
headers["Authorization"] = "token {auth.to_s}"
end
# User agent (is used by github to contact devs in case of problems)
if user_agent != null then
headers["User-Agent"] = user_agent.to_s
end
end
lib/neo4j/curl_json.nit:29,2--43,4
redef fun init_headers do
super
headers["Content-Type"] = "application/json"
end
lib/neo4j/curl_json.nit:112,2--115,4
redef fun init_headers do
super
headers["Content-Type"] = "application/json"
end
lib/neo4j/curl_json.nit:147,2--150,4