Skip to content

Response type needs to have a different body type #16

@CrowdHailer

Description

@CrowdHailer

currently the return type from httpc.send is Response(String)

https://hexdocs.pm/gleam_httpc/gleam/httpc/#send

This has been causing me runtime errors because I can use httpc to fetch resources like images, e.g. favicons which to not have a string body. I think the correct thing to do is Response(BitString)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions