Ktor
Toggle table of contents
3.3.x
Select version
3.4.x
3.3.x
3.2.x
3.1.x
3.0.x
2.3.x
2.2.x
2.0.x
1.6.x
common
Target filter
common
Switch theme
Search in API
Skip to content
Ktor
ktor-server-core
/
io.ktor.server.http.content
/
HttpStatusCodeContent
Http
Status
Code
Content
class
HttpStatusCodeContent
(
value
:
HttpStatusCode
)
:
OutgoingContent.NoContent
(
source
)
Represents a simple status code response with no content
Report a problem
Parameters
value
status code to be sent
Members
Constructors
Http
Status
Code
Content
Link copied to clipboard
constructor
(
value
:
HttpStatusCode
)
Properties
content
Length
Link copied to clipboard
open
val
contentLength
:
Long
?
content
Type
Link copied to clipboard
open
val
contentType
:
ContentType
?
headers
Link copied to clipboard
open
val
headers
:
Headers
status
Link copied to clipboard
open
override
val
status
:
HttpStatusCode
Functions
get
Property
Link copied to clipboard
open
fun
<
T
:
Any
>
getProperty
(
key
:
AttributeKey
<
T
>
)
:
T
?
set
Property
Link copied to clipboard
open
fun
<
T
:
Any
>
setProperty
(
key
:
AttributeKey
<
T
>
,
value
:
T
?
)
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String
trailers
Link copied to clipboard
open
fun
trailers
(
)
:
Headers
?