Page Speed Optimization Libraries
1.11.33.2
|
#include "file_load_mapping.h"
Public Member Functions | |
FileLoadMappingRegexp (const GoogleString &url_regexp, const GoogleString &filename_prefix) | |
virtual bool | Substitute (StringPiece url, GoogleString *filename) const |
If a mapping is too complicated to represent with a simple literal with FileLoadMappingLiteral, you can use a regexp mapper. For example, if we had: FileLoadMappingRegexp("http://example.com/([^/**])/bar/", "/var/bar/\\1/") that would mean http://example.com/foo/bar/baz would be found on the filesystem at /var/bar/foo/baz.
|
virtual |
If this mapping applies to this url, put the mapped path into filename and return true. Otherwise return false.
Implements net_instaweb::FileLoadMapping.