ForbiddenResponse
class ForbiddenResponse : NoContent
Response content with 403 Forbidden
status code and WWW-Authenticate
header of supplied challenges
Parameters
challenges
- to be passed with WWW-Authenticate
header
Constructors
ForbiddenResponse(challenge: HttpAuthHeader?) ForbiddenResponse(vararg challenges: HttpAuthHeader) Response content with |
Properties
vararg val challenges: Array<out HttpAuthHeader> to be passed with |
|
val headers: Headers Headers to set when sending this content |
|
val status: HttpStatusCode? Status code to set when sending this content |
Extension Properties
var OutgoingContent.caching: CachingOptions? Gets or sets CacheControl instance as an extension property on this content |
|
val OutgoingContent. Retrieves LastModified and ETag versions from this OutgoingContent headers |
|
var OutgoingContent.versions: List<Version> Gets or sets list of Version instances as an extension property on this content |
Extension Functions
suspend fun OutgoingContent.toByteArray(): ByteArray |
|
suspend fun OutgoingContent.toByteReadPacket(): ByteReadPacket |
|
fun OutgoingContent.wrapHeaders( Generates a new OutgoingContent of the same abstract type but with OutgoingContent.headers transformed by the specified block. |