void (*update_url)(struct uclient *cl);
int (*connect)(struct uclient *cl);
int (*request)(struct uclient *cl);
void (*update_url)(struct uclient *cl);
int (*connect)(struct uclient *cl);
int (*request)(struct uclient *cl);
- int (*write)(struct uclient *cl, char *buf, unsigned int len);
-};
-
-struct uclient_url {
- const struct uclient_backend *backend;
- int prefix;
-
- const char *host;
- const char *port;
- const char *location;
-
- const char *auth;
+ int (*write)(struct uclient *cl, const char *buf, unsigned int len);