The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
serveStaticData
arsd
cgi
Serves static data. To be used with
dispatcher
.
auto
serveStaticData
(string urlPrefix, immutable(void)[] data, string contentType)
version(with_breaking_cgi_features)
auto
serveStaticData
(
string
urlPrefix
,
immutable
(
void
)[]
data
,
string
contentType
= null
)
auto
serveStaticData
(string urlPrefix, immutable(ubyte)[] data, string contentType, string filenameToSuggestAsDownload)
Meta
Source
See Implementation
History
Added October 31, 2021
arsd
cgi
aliases
KeepExistingPresenter
classes
BasicDataServerSession
BufferedInputRange
Cgi
CgiTester
CollectionOf
ConnectionClosedException
EventSourceServerImplementation
ListeningConnectionManager
MockSession
ResourceNotFoundException
RestObject
WebObject
WebPresenter
WebSocket
enums
AddTrailingSlash
RemoveTrailingSlash
functions
acceptWebsocket
cgiMainImpl
decodeVariables
decodeVariablesSingle
defaultListeningHost
defaultListeningPort
dispatchSubsection
dispatchTo
dummyCgi
encodeVariables
gzipRecommendedForContentType
handleWith
makeDataUrl
rawurlencode
serveApi
serveRedirect
serveRestObject
serveStaticData
serveStaticFile
serveStaticFileDirectory
trySimulatedRequest
websocketRequested
interfaces
BasicDataServer
EventIoServer
EventSourceServer
ScheduledJobServer
Session
SessionObject
mixin templates
CustomCgiDispatcherMain
CustomCgiMain
DispatcherMain
ForwardCgiConstructors
GenericMain
static variables
fiberStackSize
structs
CreatedResource
DefaultFormat
DispatcherData
DisplayName
MultipleResponses
Redirection
RequestServer
ScheduledJobHelper
Uri
UrlName
ifCalledFromWeb
templates
AutomaticForm
dispatcher
passFilterOrIssueError
schedule
Serves static data. To be used with dispatcher.