if (!flags.hostVerified && (flags.intercepted || flags.spoofClientIp))
return false;
- switch(protocol)
- {
+ switch (protocol) {
case AnyP::PROTO_HTTP:
if (!method.respMaybeCacheable())
return false;
case AnyP::PROTO_CACHE_OBJECT:
return false;
- //case AnyP::PROTO_FTP:
+ //case AnyP::PROTO_FTP:
default:
break;
}
// NOTE:
// All known RFCs which register methods are listed in comments.
- // if there is one not listed which defines methods, it needs
+ // if there is one not listed which defines methods, it needs
// checking and adding. If only to say it is known to define none.
- switch(theMethod)
- {
+ switch (theMethod) {
// RFC 2068 - none
// RFC 2616 section 9.1.1
// NOTE:
// All known RFCs which register methods are listed in comments.
- // if there is one not listed which defines methods, it needs
+ // if there is one not listed which defines methods, it needs
// checking and adding. If only to say it is known to define none.
- switch(theMethod)
- {
+ switch (theMethod) {
// RFC 2068 - TODO check LINK/UNLINK definition
// RFC 2616 section 9.1.2
{
// Only a few methods are defined as cacheable.
// All other methods from the below RFC are "MUST NOT cache"
- switch(theMethod)
- {
+ switch (theMethod) {
// RFC 2616 section 9
case Http::METHOD_GET:
case Http::METHOD_HEAD:
#include <string>
#endif
-
class HttpRequest;
class HttpReply;
/**
* Used to store a notes list.
*/
-class Notes {
+class Notes
+{
public:
typedef Vector<Note::Pointer> NotesList;
typedef NotesList::iterator iterator; ///< iterates over the notes list
Note::Pointer add(const String ¬eKey);
};
-class NotePairs : public HttpHeader {
+class NotePairs : public HttpHeader
+{
public:
NotePairs() : HttpHeader(hoNote) {}
};
makingVb = opNever; // there is nothing to deliver
HttpRequest *request = dynamic_cast<HttpRequest*> (theCauseRep ?
- theCauseRep->raw().header : theVirginRep.raw().header);
+ theCauseRep->raw().header : theVirginRep.raw().header);
Must(request);
HttpReply *reply = dynamic_cast<HttpReply*>(theVirginRep.raw().header);
#endif
case LFT_NOTE:
if (fmt->data.string) {
- sb = al->notes.getByName(fmt->data.string);
+ sb = al->notes.getByName(fmt->data.string);
out = sb.termedBuf();
quote = 1;
} else {
namespace Http
{
-// see IANA registry:
+// see IANA registry:
// also: https://datatracker.ietf.org/doc/draft-ietf-httpbis-method-registrations
typedef enum _method_t {
METHOD_NONE = 0,