Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
net_instaweb::CspSourceExpression::UrlData Struct Reference

Public Member Functions

 UrlData (StringPiece in_scheme, StringPiece in_host, StringPiece in_port, StringPiece in_path, bool exact_match=false)
 Constructor for tests, assumes already normalized.
 
GoogleString DebugString () const
 
bool operator== (const UrlData &other) const
 For convenience of unit testing.
 

Public Attributes

GoogleString scheme_part
 doesn't include : More...
 
GoogleString host_part
 
GoogleString port_part
 
std::vector< GoogleStringpath_part
 separated by /
 
bool path_exact_match
 

Member Data Documentation

GoogleString net_instaweb::CspSourceExpression::UrlData::scheme_part

doesn't include :

All the components here are stored in a manner that matches the way GoogleUrl stores their corresponding portions, to make it easy to compare against incoming URLs: 1) The case-insensitive scheme and host portions are lowercased. 2) The case-sensitive path doesn't have its case changed, but the % escaping is normalized. We also pre-split it since we have to check per-component.


The documentation for this struct was generated from the following file: