register

override fun register(originalName: String, contentType: ContentType, content: OutgoingContent.ReadChannelContent): RevisionedFile(source)

Registers and returns a revisioned file. This is the most general function to create a revisioned file.

Parameters

originalName

the original name of the file (without a revision), e.g. main.js.

contentType

the content type of the file, e.g. text/javascript.

content

the actual content of the file, necessary for sending responses.