Wishlist: URL error reporting


#1

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


#2

url.createInputStream

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.

 


#3

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)


#4

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: