Wishlist: URL error reporting

URL functions to return Result instead of bool and information on what actually went wrong (timeout, no-port, server error code...).


the last parameter of this API indicates the returned http status, and if this API returns nullptr, it means the URL has a wrong format that the server is not reachable somereason.


It's a good request - there are lots of methods such as that one which I wrote before the Result class existed, and I've been gradually updating them from time to time. (Updating things does generally mean a breaking change though)

Bump. Going to be doing some HTTPS intensive stuff for a project … would be super-duper-great to have error codes back from the interweb functions… :slight_smile:

1 Like