Instance Method (Default implementation)vapor 4.114.1Vapor
afterDecode
Content.swift:88mutating func afterDecode() throws mutating func afterDecode() throws import VaporVapor is a framework for building server applications, APIs and websites in Swift. It provides a safe, performant and scalable foundation for building large complex backends.
protocol Content : Decodable, Encodable, Sendable, AsyncRequestDecodable, AsyncResponseEncodable, RequestDecodable, ResponseEncodableConvertible to / from content in an HTTP message.
mutating func afterDecode() throws Called after this Content is decoded, generally from a Request object.
static var defaultContentType: HTTPMediaType { get }static func decodeRequest(_ request: Request) -> EventLoopFuture<Self> static func decodeRequest(_ request: Request) async throws -> Self mutating func beforeEncode() throws func encodeResponse(for request: Request) -> EventLoopFuture<Response> func encodeResponse(for request: Request) async throws -> Response