serveStaticData

See serveStaticFile if you want to serve a file off disk.

  1. auto serveStaticData(string urlPrefix, immutable(void)[] data, string contentType)
  2. auto serveStaticData(string urlPrefix, immutable(ubyte)[] data, string contentType, string filenameToSuggestAsDownload)
    version(with_breaking_cgi_features)
    serveStaticData
    (
    string urlPrefix
    ,
    immutable(ubyte)[] data
    ,,)

Meta

History

Added January 28, 2023 (dub v11.0)