Home | History | Annotate | Download | only in flip_server

Lines Matching refs:headers

151   SpdyHeaderBlock headers;
156 parsed_headers = spdy_framer_->ParseHeaderBlock(frame, &headers);
159 VLOG(2) << ACCEPTOR_CLIENT_IDENT << "SpdySM: headers parsed?: "
162 VLOG(2) << ACCEPTOR_CLIENT_IDENT << "SpdySM: # headers: "
163 << headers.size();
165 SpdyHeaderBlock::iterator url = headers.find("url");
166 SpdyHeaderBlock::iterator method = headers.find("method");
167 if (url == headers.end() || method == headers.end()) {
173 SpdyHeaderBlock::iterator scheme = headers.find("scheme");
188 SpdyHeaderBlock::iterator referer = headers.find("referer");
198 SpdyHeaderBlock::iterator version = headers.find("version");
202 for (SpdyHeaderBlock::iterator i = headers.begin();
203 i != headers.end(); ++i) {
221 SpdyHeaderBlock headers;
261 parsed_headers = spdy_framer_->ParseHeaderBlock(frame, &headers);
383 size_t SpdySM::SendSynStream(uint32 stream_id, const BalsaHeaders& headers) {
384 return SendSynStreamImpl(stream_id, headers);
387 size_t SpdySM::SendSynReply(uint32 stream_id, const BalsaHeaders& headers) {
388 return SendSynReplyImpl(stream_id, headers);
425 void SpdySM::CopyHeaders(SpdyHeaderBlock& dest, const BalsaHeaders& headers) {
427 headers.header_lines_begin();
428 hi != headers.header_lines_end();
430 // It is illegal to send SPDY headers with empty value or header
445 // These headers have no value
451 const BalsaHeaders& headers) {
453 block["method"] = headers.request_method().as_string();
454 if (!headers.HasHeader("status"))
455 block["status"] = headers.response_code().as_string();
456 if (!headers.HasHeader("version"))
457 block["version"] =headers.response_version().as_string();
458 if (headers.HasHeader("X-Original-Url")) {
459 std::string original_url = headers.GetHeader("X-Original-Url").as_string();
462 block["path"] = headers.request_uri().as_string();
464 CopyHeaders(block, headers);
477 size_t SpdySM::SendSynReplyImpl(uint32 stream_id, const BalsaHeaders& headers) {
479 CopyHeaders(block, headers);
480 block["status"] = headers.response_code().as_string() + " " +
481 headers.response_reason_phrase().as_string();
482 block["version"] = headers.response_version().as_string();
553 BalsaHeaders headers;
554 headers.CopyFrom(*(mci->file_data->headers));
555 headers.ReplaceOrAppendHeader("status", "200");
556 headers.ReplaceOrAppendHeader("version", "http/1.1");
557 headers.SetRequestFirstlineFromStringPieces("PUSH",
560 mci->bytes_sent = SendSynStream(mci->stream_id, headers);
562 BalsaHeaders headers;
563 headers.CopyFrom(*(mci->file_data->headers));
564 mci->bytes_sent = SendSynReply(mci->stream_id, headers);
580 if (!mci->file_data->headers->HasHeader("content-encoding")) {
581 if (mci->file_data->headers->HasHeader("content-type")) {
583 mci->file_data->headers->GetHeader("content-type").as_string();