Package io.ktor.response
Types
Represents server's response
Server response send pipeline
HTTP/2 push builder
Server's response cookies
Server's response headers
HTTP/2 push builder interface
HTTP/2 push is no longer supported by Chrome web browser. Other browsers may discard it at some point. With such browsers, HTTP/2 push will be disabled, therefore using this feature is safe but it will have no effect. On the other hand, this feature is not deprecated and generally it is still allowed to use it, so feel free to opt-in this annotation to eliminate this warning, if you are sure that you need it. For example, it makes sense to use with a non-browser client that for sure supports HTTP/2 push.
Functions
Append 'Content-Range` header with specified range and fullLength
Append response Content-Range
header with specified range and fullLength
Creates a default ContentType based on the given contentType and current call
Append response E-Tag
HTTP header value
Append response Expires
HTTP header value
Append response Last-Modified
HTTP header value from dateTime
Sends a message as a response
Responds to a client with a raw bytes response, using specified provider to build a byte array
Responds to a client with a raw bytes response, using specified bytes
Respond with binary content producer.
Responds to a client with a contents of a file
Respond with binary content producer.
Responds to a client with a 301 Moved Permanently
or 302 Found
redirect. Unlike the other respondRedirect it provides a way to build URL based on current call using block function
Responds to a client with a 301 Moved Permanently
or 302 Found
redirect
Responds to a client with a plain text response, using specified provider to build a text
Responds to a client with a plain text response, using specified text
Respond with text content writer.
Properties
Type of the response object that was passed in respond function. Can be useful for custom serializations.