Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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