Skip to content

Initializer

init(_:)

Creates a new PlaintextEncoder.
init(_ contentType: HTTPMediaType = .plainText)

Parameters

contentType

Plaintext MediaType to use. Usually .plainText or .html.