Page Speed Optimization Libraries  1.4.26.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions
net_instaweb::ApacheConfig Class Reference

#include "apache_config.h"

Inheritance diagram for net_instaweb::ApacheConfig:
net_instaweb::SystemRewriteOptions net_instaweb::RewriteOptions

List of all members.

Public Member Functions

 ApacheConfig (const StringPiece &dir)
StringPiece description () const
void set_description (const StringPiece &x)
int64 slurp_flush_limit () const
void set_slurp_flush_limit (int64 x)
bool slurp_read_only () const
void set_slurp_read_only (bool x)
bool rate_limit_background_fetches () const
const GoogleStringslurp_directory () const
void set_slurp_directory (GoogleString x)
bool test_proxy () const
void set_test_proxy (bool x)
GoogleString test_proxy_slurp () const
bool slurping_enabled () const
 Helper functions.
bool slurping_enabled_read_only () const
bool experimental_fetch_from_mod_spdy () const
virtual ApacheConfigClone () const
 Make an identical copy of these options and return it.

Static Public Member Functions

static void Initialize ()
static void Terminate ()
static const ApacheConfigDynamicCast (const RewriteOptions *instance)
static ApacheConfigDynamicCast (RewriteOptions *instance)

Detailed Description

Establishes a context for VirtualHosts and directory-scoped options, either via .htaccess or <Directory>...</Directory>.


Member Function Documentation

StringPiece net_instaweb::ApacheConfig::description ( ) const [inline]

Human-readable description of what this configuration is for. This may be a directory, or a string indicating a combination of directives for multiple directories.

static const ApacheConfig* net_instaweb::ApacheConfig::DynamicCast ( const RewriteOptions instance) [static]

Returns a suitably down cast version of 'instance' if it is an instance of this class, NULL if not.

static void net_instaweb::ApacheConfig::Initialize ( ) [static]

Static initialization of members. Calls to Initialize and Terminate must be matched. Returns 'true' for the first Initialize call and the last Terminate call.

Reimplemented from net_instaweb::SystemRewriteOptions.

bool net_instaweb::ApacheConfig::test_proxy ( ) const [inline]

If this is set to true, we'll turn on our fallback proxy-like behavior on non-.pagespeed. URLs without changing the main fetcher from Serf (the way the slurp options would).

This configures the fetcher we use for fallback handling if test_proxy() is on:

  • If this is empty, we use the usual mod_pagespeed fetcher (e.g. Serf)
  • If it's non-empty, the fallback URLs will be fetched from the given slurp directory. mod_pagespeed resource fetches, however, will still use the usual fetcher (e.g. Serf).

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines