83 var headerLines = headersString.split(
'\r\n'),
84 count = headerLines.
length;
88 var headerLine = headerLines[count],
89 index = headerLine.indexOf(
': ');
91 [r setValue:headerLine.substring(index + 2) forKey:headerLine.substring(0, index)];
99 - (void)_setStatusCode:(
int)aStatusCode
101 _statusCode = aStatusCode;
112 - (void)_setAllResponseHeaders:(
CPString)responseHeadersString
114 _allResponseHeaders = responseHeadersString;
123 if (!_responseHeaders)
124 _responseHeaders = [[
self class] parseHTTPHeaders:_allResponseHeaders];
126 return _responseHeaders;
A mutable key-value pair collection.
An immutable string (collection of characters).
Protocol agnostic information about a request to a specific URL.