Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Initializer

init(_:)

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

Parameters

contentType

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