Instance Methodsoto-core 7.4.0SotoCore
decodeStatus(_:)
Decode response status to integer
This declaration is gated by at least one @_spi attribute.
func decodeStatus<Value>(_: Value.Type = Value.self) -> Value where Value : FixedWidthInteger
Decode response status to integer
This declaration is gated by at least one @_spi attribute.
func decodeStatus<Value>(_: Value.Type = Value.self) -> Value where Value : FixedWidthInteger
s8SotoCore25ResponseDecodingContainerV12decodeStatusyxxms17FixedWidthIntegerRzlF
What are these?8TTS1
import SotoCore
struct ResponseDecodingContainer
Response container used during Codable init(from:)
that allows for extracting data from the full response and not only its body
protocol FixedWidthInteger : BinaryInteger, LosslessStringConvertible where Self.Magnitude : FixedWidthInteger, Self.Magnitude : UnsignedInteger, Self.Stride : FixedWidthInteger, Self.Stride : SignedInteger
An integer type that uses a fixed size for every instance.
func decodeHeader(_ type: Date.Type = Date.self, key header: String) throws -> Date
Decode header to Date. Assumes the date format is HTTP date time
func decodeHeader<Value>(_ type: Value.Type = Value.self, key header: String) throws -> Value where Value : RawRepresentable, Value.RawValue == String
Decode header to type conforming to RawRepresentable
func decodeHeader<Value>(_ type: Value.Type = Value.self, key header: String) throws -> Value where Value : LosslessStringConvertible
Decode header to type conforming to LosslessStringConvertible
func decodeHeaderIfPresent(_ type: Date.Type = Date.self, key header: String) throws -> Date?
Decode header if present to Date. Assumes the date format is HTTP date time
func decodeHeaderIfPresent(_ type: [String : String].Type = [String: String].self, key header: String) throws -> [String : String]?
Decode headers with prefix to Dictionary.
func decodeHeaderIfPresent<Value>(_ type: Value.Type = Value.self, key header: String) throws -> Value? where Value : RawRepresentable, Value.RawValue == String
Decode header if present to type conforming to RawRepresentable
func decodeHeaderIfPresent<Value>(_ type: Value.Type = Value.self, key header: String) throws -> Value? where Value : LosslessStringConvertible
Decode header if present to type conforming to LosslessStringConvertible