Instance Methodvapor 4.106.2Vapor
use(urlDecoder:)
ContentConfiguration.swift:106mutating func use(urlDecoder: URLQueryDecoder)
Other members in extension
Type members
init(
) Create a new, empty
ContentConfiguration
.static var global: ContentConfiguration
static func `default`(
) -> ContentConfiguration Creates a
ContentConfiguration
containing all of Vapor’s default coders.
Instance members
func requireDecoder(for: HTTPMediaType
) throws -> ContentDecoder Returns a
ContentDecoder
for the specifiedHTTPMediaType
or throws an error.func requireEncoder(for: HTTPMediaType
) throws -> ContentEncoder Returns an
ContentEncoder
for the specifiedHTTPMediaType
or throws an error.func requireURLDecoder(
) throws -> URLQueryDecoder Returns a
URLQueryDecoder
or throws an error.func requireURLEncoder(
) throws -> URLQueryEncoder Returns a
URLQueryEncoder
or throws an error.func use(decoder: ContentDecoder, for: HTTPMediaType
) Adds a
ContentDecoder
for the specifiedHTTPMediaType
.func use(encoder: ContentEncoder, for: HTTPMediaType
) Adds a
ContentEncoder
for the specifiedHTTPMediaType
.func use(urlEncoder: URLQueryEncoder
)