mime_header.cc File Reference
#include "squid.h"
#include "Debug.h"
#include "profiler/Profiler.h"
Include dependency graph for mime_header.cc:

Go to the source code of this file.

Functions

size_t headersEnd (const char *mime, size_t l, bool &containsObsFold)
 

Function Documentation

size_t headersEnd ( const char *  ,
size_t  ,
bool &  containsObsFold 
)

Scan for the end of mime header block.

Which is one of the following octet patterns:

  • CRLF CRLF, or
  • CRLF LF, or
  • LF CRLF, or
  • LF LF or, if mime header block is empty:
  • LF or
  • CRLF

Also detects whether a obf-fold pattern exists within the mime block

  • CR*LF (SP / HTAB)
Parameters
containsObsFoldwill be set to true if obs-fold pattern is found.

Definition at line 16 of file mime_header.cc.

References headersEnd(), PROF_start, and PROF_stop.

Referenced by detailEntryEnd(), Http::One::Parser::grabMimeBlock(), headersEnd(), HttpHeader::Isolate(), netdbExchangeHandleReply(), Http::Message::parse(), Rock::HeaderUpdater::parseReadBytes(), peerDigestFetchReply(), peerDigestSwapInHeaders(), store_client::readBody(), clientReplyContext::sendMoreData(), testHttpReply::testSanityCheckFirstLine(), testHttpRequest::testSanityCheckStartLine(), and urnHandleReply().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors