Home | History | Annotate | Download | only in websockets

Lines Matching refs:headers

91   scoped_refptr<HttpResponseHeaders> headers(
94 if (headers->response_code() != 101) {
96 DVLOG(1) << "Bad response code: " << headers->response_code();
100 if (!ProcessHeaders(*headers) || !CheckResponseHeaders()) {
101 DVLOG(1) << "Process Headers failed: " << std::string(data, eoh);
157 bool WebSocketHandshake::GetSingleHeader(const HttpResponseHeaders& headers,
162 if (!headers.EnumerateHeader(&iter, name, &first_value))
165 // Checks no more |name| found in |headers|.
168 if (headers.EnumerateHeader(&iter, name, &second_value))
174 bool WebSocketHandshake::ProcessHeaders(const HttpResponseHeaders& headers) {
176 if (!GetSingleHeader(headers, "upgrade", &value) ||
180 if (!GetSingleHeader(headers, "connection", &value) ||
184 if (!GetSingleHeader(headers, "sec-websocket-origin", &ws_origin_))
187 if (!GetSingleHeader(headers, "sec-websocket-location", &ws_location_))
193 && !GetSingleHeader(headers, "sec-websocket-protocol", &ws_protocol_))