1 float URL_READY_ERROR = -1;
2 float URL_READY_CLOSED = 0;
3 float URL_READY_CANWRITE = 1;
4 float URL_READY_CANREAD = 2;
5 // errors: -1, or negative HTTP status code
6 typedef void(entity handle, entity pass, float status) url_ready_func;
8 void url_fopen(string url, float mode, url_ready_func rdy, entity pass);
9 void url_fclose(entity e, url_ready_func rdy, entity pass);
10 string url_fgets(entity e);
11 void url_fputs(entity e, string s);
13 // returns true if handled
14 float url_URI_Get_Callback(float id, float status, string data);
15 #define MIN_URL_ID 128