/// <summary> /// Adds a file with an alias. /// </summary> /// <param name="path">The path to the file from the web application root.</param> /// <param name="alias">The public alias to use for the file.</param> /// <param name="headers">The headers for the file.</param> /// <returns>Current instance.</returns> public StaticBuilder AddFileAlias(string path, string alias, params string[] headers) { alias = alias.TrimEnd('/'); _files[alias] = new StaticFile(path, alias, ParseHeaders(headers)); alias += '/'; _files[alias] = new StaticFile(path, alias, ParseHeaders(headers)); return(this); }
public StaticBuilder AddFileAlias(string path, string alias, params string[] headers) { _files[alias] = new StaticFile(path, alias, ParseHeaders(headers)); return this; }
/// <summary> /// Adds a file with an alias. /// </summary> /// <param name="path">The path to the file from the web application root.</param> /// <param name="alias">The public alias to use for the file.</param> /// <param name="headers">The headers for the file.</param> /// <returns>Current instance.</returns> public StaticBuilder AddFileAlias(string path, string alias, params string[] headers) { alias = alias.TrimEnd('/'); _files[alias] = new StaticFile(path, alias, ParseHeaders(headers)); alias += '/'; _files[alias] = new StaticFile(path, alias, ParseHeaders(headers)); return this; }