Core Base Classes for the Light Endpoints
Dependents: mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet ... more
Diff: HTTPTransport.h
- Revision:
- 183:2f586f91ff23
- Parent:
- 96:686ec39400dc
- Child:
- 192:54b758a8eaaa
diff -r 85c62a9f146d -r 2f586f91ff23 HTTPTransport.h --- a/HTTPTransport.h Sat Sep 13 02:56:10 2014 +0000 +++ b/HTTPTransport.h Sat Sep 13 04:27:19 2014 +0000 @@ -34,7 +34,8 @@ HTTPTransport(HTTPClient *http,ErrorHandler *error_handler,void *endpoint); virtual ~HTTPTransport(); - virtual bool httpGet(char *url,char *result,int result_length); + virtual void basicAuth(char *username,char *pw); + virtual bool httpGet(char *url,char *result,int result_length,int timeout=0); virtual bool httpPut(char *url,char *data,int data_length,char *result,int result_length); virtual bool httpPost(char *url,char *data,int data_length,char *result,int result_length); virtual bool httpDelete(char *url,char *data,int data_length);