Encoding

How a message body is encoded for transport

Entries

Link copied to clipboard

unknown / error

Link copied to clipboard

no body is present (which is not the same as a 0-length body, and only occurs in certain places)

Link copied to clipboard

Content-Length encoding

Link copied to clipboard

Response body ends when the connection is closed

Link copied to clipboard

chunked encoding (currently only supported for response)

Link copied to clipboard

multipart/byteranges (Reserved for future use: NOT CURRENTLY IMPLEMENTED)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val nativeValue: <Error class: unknown class>
Link copied to clipboard

Functions

Link copied to clipboard
fun valueOf(value: String): Encoding

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.