Lines Matching refs:headers
124 // in the set of headers, they are combined into a single line like so:
127 // DANGER: For some headers (e.g., "Set-Cookie"), the normalized form can be
129 // Set-Cookie headers that contain unquoted commas (usually as part of the
131 // not expect to be able to re-parse Set-Cookie headers from this output.
139 output->assign(info.headers->GetStatusLine());
142 // Enumerate the headers
145 while (info.headers->EnumerateHeaderLines(&iter, &name, &value)) {
152 // Mark the end of headers
162 std::string headers;
165 if (index == 0) { // Stream 0 is the headers.
176 // Remove the size headers.
177 response_info.headers->RemoveHeader("transfer-encoding");
178 response_info.headers->RemoveHeader("content-length");
179 response_info.headers->RemoveHeader("x-original-url");
181 // Convert the headers into a string ending with LF.
182 GetNormalizedHeaders(response_info, &headers);
194 headers.replace(headers.length() - 2, 0, x_original_url);
196 data = headers.c_str();
197 len = headers.size();