HBRequestDecoder

public protocol HBRequestDecoder

protocol for decoder deserializing from a Request body

  • Decode type from request

    Declaration

    Swift

    func decode<T>(_ type: T.Type, from request: HBRequest) throws -> T where T : Decodable

    Parameters

    type

    type to decode to

    request

    request