Instance Subscriptvapor 4.106.1Vapor
subscript(_:at:)
Fetch a single Decodable
value at the supplied keypath in the container.
subscript<D>(_: D.Type = D.self, at path: CodingKeyRepresentable...) -> D? where D : Decodable { get }
let name: String? = req.query[at: "user", "name"]
Other members in extension
Instance members
subscript<D>(CodingKeyRepresentable...
) -> D? Legacy alias for
subscript(_:at:)-26w0c
.subscript<D>(D.Type, at: [CodingKeyRepresentable]
) -> D? Fetch a single
Decodable
value at the supplied keypath in the container.func decode<C>(C.Type
) throws -> C Parse a
Content
object from the container.func decode<D>(D.Type
) throws -> D Parse a
Decodable
value from the container.func encode<C>(C
) throws Serialize a
Content
object to the container.func encode<E>(E
) throws Serialize an
Encodable
value to the container.func encode<C>(inout C
) throws Serialize a
Content
object to the container without copying it.func get<D>(D.Type, at: [CodingKeyRepresentable]
) throws -> D Fetch a single
Decodable
value at the supplied keypath in this container.func get<D>(D.Type, at: CodingKeyRepresentable...
) throws -> D Fetch a single
Decodable
value at the supplied keypath in the container.