# Success Abstract Response Success Class
abstract class CurlResponseSuccessIntern
super CurlCallbacks
super CurlResponse
var headers = new HashMap[String, String]
# Receive headers from request due to headers callback registering
redef fun header_callback(line)
do
var splitted = line.split_with(':')
if splitted.length > 1 then
var key = splitted.shift
self.headers[key] = splitted.to_s
end
end
end
lib/curl/curl.nit:549,1--565,3