gleam-lang / gleam-lang/httpc

Response type needs to have a different body type

Open
#16 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Gleam
Stars
175
Forks
31
PR merge metrics
No merged PRs in 30d

Description

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)`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.