Skip to content

[Bug]: HTTPBody asString property always returns nil #90

Description

@NicFontana

Platform Version

iOS 17.2

SDK Version

1.8.3

Xcode Version

Xcode 15.2

Steps To Reproduce

Let's suppose we do have a struct representing a form:

struct MyForm: Encodable {
    let numbers: [Int]
}

if we create a HTTPBody object by passing an instance of MyForm:

let form = try! HTTPBody.form(object: MyForm(numbers: [1, 2, 3]))

calling form.asString always returns nil.

Expected Behavior

form.asString should returns a String representing the MyForm instance we have passed.

Actual Incorrect Behavior

form.asString always returns nil.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions