You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
There's a tension between flexibility and doing what is useful in the majority of cases. For now we can case a string body to a bit string and use send_bits. What do you think?
Hmm. I'm not sure. a dynamic string as the error is not very useful.
Problem is sometimes I get a nonstring response from a CDN or proxy on occasion as much as the endpoint is set up to return proper strings
currently the return type from
httpc.send
isResponse(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)
The text was updated successfully, but these errors were encountered: