Skip to main content

HtmlModule

Assembly: ServiceStack.dll​
View Source​
Declaration
public class HtmlModule

Properties​

EnableHttpCaching​

View Source​
Declaration
public bool? EnableHttpCaching { get; set; }

EnableCompression​

View Source​
Declaration
public bool? EnableCompression { get; set; }

CacheControl​

View Source​
Declaration
public string CacheControl { get; set; }

Feature​

View Source​
Declaration
public HtmlModulesFeature Feature { get; set; }

DirPath​

View Source​
Declaration
public string DirPath { get; set; }

BasePath​

View Source​
Declaration
public string BasePath { get; set; }

VirtualFiles​

View Source​
Declaration
public IVirtualPathProvider VirtualFiles { get; set; }

IndexFile​

View Source​
Declaration
public string IndexFile { get; set; }

PublicPaths​

View Source​
Declaration
public List<string> PublicPaths { get; set; }

DynamicPageQueryStrings​

View Source​
Declaration
public List<string> DynamicPageQueryStrings { get; set; }

Tokens​

View Source​
Declaration
public Dictionary<string, Func<HtmlModuleContext, ReadOnlyMemory<byte>>> Tokens { get; set; }

Handlers​

View Source​
Declaration
public List<IHtmlModulesHandler> Handlers { get; set; }

LineTransformers​

View Source​
Declaration
public List<HtmlModuleLine> LineTransformers { get; set; }

FileContentsResolver​

File resolver to use to read file contents

View Source​
Declaration
public Func<IVirtualFile, string> FileContentsResolver { get; set; }

Cache​

View Source​
Declaration
public ConcurrentDictionary<string, ReadOnlyMemory<byte>> Cache { get; }

Methods​

TransformContent(ReadOnlyMemory<Char>)​

View Source​
Declaration
public ReadOnlyMemory<char> TransformContent(ReadOnlyMemory<char> content)
Returns​

ReadOnlyMemory<System.Char>

Parameters​
TypeName
ReadOnlyMemory<System.Char>content

Flush()​

View Source​
Declaration
public void Flush()

Register(IAppHost)​

View Source​
Declaration
public void Register(IAppHost appHost)
Parameters​
TypeName
ServiceStack.IAppHostappHost