Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Instance Method

decode(_:)

Use the default decoder for the container’s contentType to read a value of type C from the container.
func decode<C>(_: C.Type) async throws -> C where C : Content

Discussion

Note

The defaultContentType of C is ignored.