This library is used to make HTTP and HTTPS calls from mbed OS 5 applications.
Fork of mbed-http by
Diff: source/http_response.h
- Revision:
- 15:ffc77f212382
- Parent:
- 14:3004056e4661
- Child:
- 18:f7a85895a941
--- a/source/http_response.h Thu Mar 30 15:13:37 2017 +0200
+++ b/source/http_response.h Fri Jul 28 14:26:26 2017 +0200
@@ -61,6 +61,22 @@
return status_message;
}
+ void set_url(string a_url) {
+ url = a_url;
+ }
+
+ string get_url() {
+ return url;
+ }
+
+ void set_method(http_method a_method) {
+ method = a_method;
+ }
+
+ http_method get_method() {
+ return method;
+ }
+
void set_header_field(string field) {
concat_header_value = false;
@@ -185,6 +201,8 @@
int status_code;
string status_message;
+ string url;
+ http_method method;
vector<string*> header_fields;
vector<string*> header_values;
@@ -202,4 +220,5 @@
size_t body_length;
size_t body_offset;
};
+
#endif
