Skip to content
Josh Wright edited this page Jan 14, 2021 · 4 revisions

Body

Represents the body of a request.

@propertyWrapper public struct Body<Value: Codable>: Codable, AnyBody

Inheritance

AnyBody, Codable

Initializers

init(wrappedValue:)

Initialize with a content value.

public init(wrappedValue: Value)

Parameters

  • wrappedValue: The content of this request.

init(from:)

public init(from decoder: Decoder) throws

Properties

wrappedValue

The value of the this body.

var wrappedValue: Value

content

var content: AnyEncodable

Methods

encode(to:)

public func encode(to encoder: Encoder) throws
Alchemy
Types
Protocols
Global Typealiases
Global Variables
Global Functions
Fusion
Types
Protocols
Papyrus
Types
Protocols
Clone this wiki locally