Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Functions | Variables
content_type.h File Reference
#include <set>
#include "pagespeed/kernel/base/string.h"
#include "pagespeed/kernel/base/string_util.h"

Go to the source code of this file.

Classes

struct  net_instaweb::ContentType
 

Namespaces

 net_instaweb
 Unit-test framework for wget fetcher.
 

Functions

const ContentType * net_instaweb::NameExtensionToContentType (const StringPiece &name)
 
const ContentType * net_instaweb::MimeTypeToContentType (const StringPiece &mime_type)
 
bool net_instaweb::ParseContentType (const StringPiece &content_type_str, GoogleString *mime_type, GoogleString *charset)
 
void net_instaweb::MimeTypeListToContentTypeSet (const GoogleString &in, std::set< const ContentType * > *out)
 

Variables

const ContentType & net_instaweb::kContentTypeHtml
 HTML-like (i.e. rewritable) text:
 
const ContentType & net_instaweb::kContentTypeXhtml
 
const ContentType & net_instaweb::kContentTypeCeHtml
 
const ContentType & net_instaweb::kContentTypeJavascript
 Other text:
 
const ContentType & net_instaweb::kContentTypeCss
 
const ContentType & net_instaweb::kContentTypeText
 
const ContentType & net_instaweb::kContentTypeXml
 
const ContentType & net_instaweb::kContentTypeJson
 
const ContentType & net_instaweb::kContentTypeSourceMap
 
const ContentType & net_instaweb::kContentTypePng
 Images:
 
const ContentType & net_instaweb::kContentTypeGif
 
const ContentType & net_instaweb::kContentTypeJpeg
 
const ContentType & net_instaweb::kContentTypeSwf
 
const ContentType & net_instaweb::kContentTypeWebp
 
const ContentType & net_instaweb::kContentTypeIco
 
const ContentType & net_instaweb::kContentTypePdf
 PDF:
 
const ContentType & net_instaweb::kContentTypeBinaryOctetStream
 Binary/octet-stream.
 

Detailed Description

A collection of content-types and their attributes.