Vapor Documentation Beta

Protocol URLQuery​Container

public protocol URLQueryContainer

Helper for encoding and decoding data from an HTTP request query string.

See Request.query for more information.

Requirements

decode(_:​using:​)

func decode<D>(_ decodable: D.Type, using decoder: URLQueryDecoder) throws -> D where D: Decodable

encode(_:​using:​)

mutating func encode<E>(_ encodable: E, using encoder: URLQueryEncoder) throws where E: Encodable