Skip to content

Commit a47c3e0

Browse files
author
Sebastiano Merlino
committed
corrected indentation on http_utils
1 parent d26562e commit a47c3e0

File tree

1 file changed

+137
-137
lines changed

1 file changed

+137
-137
lines changed

src/httpserver/http_utils.hpp

Lines changed: 137 additions & 137 deletions
Original file line numberDiff line numberDiff line change
@@ -90,143 +90,143 @@ class http_utils
9090
IPV4 = 4, IPV6 = 16
9191
};
9292

93-
static const short http_method_connect_code;
94-
static const short http_method_delete_code;
95-
static const short http_method_get_code;
96-
static const short http_method_head_code;
97-
static const short http_method_options_code;
98-
static const short http_method_post_code;
99-
static const short http_method_put_code;
100-
static const short http_method_trace_code;
101-
static const short http_method_unknown_code;
102-
103-
static const int http_continue;
104-
static const int http_switching_protocol;
105-
static const int http_processing;
106-
107-
static const int http_ok;
108-
static const int http_created;
109-
static const int http_accepted;
110-
static const int http_non_authoritative_information;
111-
static const int http_no_content;
112-
static const int http_reset_content;
113-
static const int http_partial_content;
114-
static const int http_multi_status;
115-
116-
static const int http_multiple_choices;
117-
static const int http_moved_permanently;
118-
static const int http_found;
119-
static const int http_see_other;
120-
static const int http_not_modified;
121-
static const int http_use_proxy;
122-
static const int http_switch_proxy;
123-
static const int http_temporary_redirect;
124-
125-
static const int http_bad_request;
126-
static const int http_unauthorized;
127-
static const int http_payment_required;
128-
static const int http_forbidden;
129-
static const int http_not_found;
130-
static const int http_method_not_allowed;
131-
static const int http_method_not_acceptable;
132-
static const int http_proxy_authentication_required;
133-
static const int http_request_timeout;
134-
static const int http_conflict;
135-
static const int http_gone;
136-
static const int http_length_required;
137-
static const int http_precondition_failed;
138-
static const int http_request_entity_too_large;
139-
static const int http_request_uri_too_long;
140-
static const int http_unsupported_media_type;
141-
static const int http_requested_range_not_satisfiable;
142-
static const int http_expectation_failed;
143-
static const int http_unprocessable_entity;
144-
static const int http_locked;
145-
static const int http_failed_dependency;
146-
static const int http_unordered_collection;
147-
static const int http_upgrade_required;
148-
static const int http_retry_with;
149-
150-
static const int http_internal_server_error;
151-
static const int http_not_implemented;
152-
static const int http_bad_gateway;
153-
static const int http_service_unavailable;
154-
static const int http_gateway_timeout;
155-
static const int http_version_not_supported;
156-
static const int http_variant_also_negotiated;
157-
static const int http_insufficient_storage;
158-
static const int http_bandwidth_limit_exceeded;
159-
static const int http_not_extended;
160-
161-
static const int shoutcast_response;
162-
163-
/* See also: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html */
164-
static const std::string http_header_accept;
165-
static const std::string http_header_accept_charset;
166-
static const std::string http_header_accept_encoding;
167-
static const std::string http_header_accept_language;
168-
static const std::string http_header_accept_ranges;
169-
static const std::string http_header_age;
170-
static const std::string http_header_allow;
171-
static const std::string http_header_authorization;
172-
static const std::string http_header_cache_control;
173-
static const std::string http_header_connection;
174-
static const std::string http_header_content_encoding;
175-
static const std::string http_header_content_language;
176-
static const std::string http_header_content_length;
177-
static const std::string http_header_content_location;
178-
static const std::string http_header_content_md5;
179-
static const std::string http_header_content_range;
180-
static const std::string http_header_content_type;
181-
static const std::string http_header_date;
182-
static const std::string http_header_etag;
183-
static const std::string http_header_expect;
184-
static const std::string http_header_expires;
185-
static const std::string http_header_from;
186-
static const std::string http_header_host;
187-
static const std::string http_header_if_match;
188-
static const std::string http_header_if_modified_since;
189-
static const std::string http_header_if_none_match;
190-
static const std::string http_header_if_range;
191-
static const std::string http_header_if_unmodified_since;
192-
static const std::string http_header_last_modified;
193-
static const std::string http_header_location;
194-
static const std::string http_header_max_forwards;
195-
static const std::string http_header_pragma;
196-
static const std::string http_header_proxy_authenticate;
197-
static const std::string http_header_proxy_authentication;
198-
static const std::string http_header_range;
199-
static const std::string http_header_referer;
200-
static const std::string http_header_retry_after;
201-
static const std::string http_header_server;
202-
static const std::string http_header_te;
203-
static const std::string http_header_trailer;
204-
static const std::string http_header_transfer_encoding;
205-
static const std::string http_header_upgrade;
206-
static const std::string http_header_user_agent;
207-
static const std::string http_header_vary;
208-
static const std::string http_header_via;
209-
static const std::string http_header_warning;
210-
static const std::string http_header_www_authenticate;
211-
212-
static const std::string http_version_1_0;
213-
static const std::string http_version_1_1;
214-
215-
static const std::string http_method_connect;
216-
static const std::string http_method_delete;
217-
static const std::string http_method_head;
218-
static const std::string http_method_get;
219-
static const std::string http_method_options;
220-
static const std::string http_method_post;
221-
static const std::string http_method_put;
222-
static const std::string http_method_trace;
223-
224-
static const std::string http_post_encoding_form_urlencoded;
225-
static const std::string http_post_encoding_multipart_formdata;
226-
static size_t tokenize_url(const std::string&,
227-
std::vector<std::string>& result, const char separator = '/'
228-
);
229-
static void standardize_url(const std::string&, std::string& result);
93+
static const short http_method_connect_code;
94+
static const short http_method_delete_code;
95+
static const short http_method_get_code;
96+
static const short http_method_head_code;
97+
static const short http_method_options_code;
98+
static const short http_method_post_code;
99+
static const short http_method_put_code;
100+
static const short http_method_trace_code;
101+
static const short http_method_unknown_code;
102+
103+
static const int http_continue;
104+
static const int http_switching_protocol;
105+
static const int http_processing;
106+
107+
static const int http_ok;
108+
static const int http_created;
109+
static const int http_accepted;
110+
static const int http_non_authoritative_information;
111+
static const int http_no_content;
112+
static const int http_reset_content;
113+
static const int http_partial_content;
114+
static const int http_multi_status;
115+
116+
static const int http_multiple_choices;
117+
static const int http_moved_permanently;
118+
static const int http_found;
119+
static const int http_see_other;
120+
static const int http_not_modified;
121+
static const int http_use_proxy;
122+
static const int http_switch_proxy;
123+
static const int http_temporary_redirect;
124+
125+
static const int http_bad_request;
126+
static const int http_unauthorized;
127+
static const int http_payment_required;
128+
static const int http_forbidden;
129+
static const int http_not_found;
130+
static const int http_method_not_allowed;
131+
static const int http_method_not_acceptable;
132+
static const int http_proxy_authentication_required;
133+
static const int http_request_timeout;
134+
static const int http_conflict;
135+
static const int http_gone;
136+
static const int http_length_required;
137+
static const int http_precondition_failed;
138+
static const int http_request_entity_too_large;
139+
static const int http_request_uri_too_long;
140+
static const int http_unsupported_media_type;
141+
static const int http_requested_range_not_satisfiable;
142+
static const int http_expectation_failed;
143+
static const int http_unprocessable_entity;
144+
static const int http_locked;
145+
static const int http_failed_dependency;
146+
static const int http_unordered_collection;
147+
static const int http_upgrade_required;
148+
static const int http_retry_with;
149+
150+
static const int http_internal_server_error;
151+
static const int http_not_implemented;
152+
static const int http_bad_gateway;
153+
static const int http_service_unavailable;
154+
static const int http_gateway_timeout;
155+
static const int http_version_not_supported;
156+
static const int http_variant_also_negotiated;
157+
static const int http_insufficient_storage;
158+
static const int http_bandwidth_limit_exceeded;
159+
static const int http_not_extended;
160+
161+
static const int shoutcast_response;
162+
163+
/* See also: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html */
164+
static const std::string http_header_accept;
165+
static const std::string http_header_accept_charset;
166+
static const std::string http_header_accept_encoding;
167+
static const std::string http_header_accept_language;
168+
static const std::string http_header_accept_ranges;
169+
static const std::string http_header_age;
170+
static const std::string http_header_allow;
171+
static const std::string http_header_authorization;
172+
static const std::string http_header_cache_control;
173+
static const std::string http_header_connection;
174+
static const std::string http_header_content_encoding;
175+
static const std::string http_header_content_language;
176+
static const std::string http_header_content_length;
177+
static const std::string http_header_content_location;
178+
static const std::string http_header_content_md5;
179+
static const std::string http_header_content_range;
180+
static const std::string http_header_content_type;
181+
static const std::string http_header_date;
182+
static const std::string http_header_etag;
183+
static const std::string http_header_expect;
184+
static const std::string http_header_expires;
185+
static const std::string http_header_from;
186+
static const std::string http_header_host;
187+
static const std::string http_header_if_match;
188+
static const std::string http_header_if_modified_since;
189+
static const std::string http_header_if_none_match;
190+
static const std::string http_header_if_range;
191+
static const std::string http_header_if_unmodified_since;
192+
static const std::string http_header_last_modified;
193+
static const std::string http_header_location;
194+
static const std::string http_header_max_forwards;
195+
static const std::string http_header_pragma;
196+
static const std::string http_header_proxy_authenticate;
197+
static const std::string http_header_proxy_authentication;
198+
static const std::string http_header_range;
199+
static const std::string http_header_referer;
200+
static const std::string http_header_retry_after;
201+
static const std::string http_header_server;
202+
static const std::string http_header_te;
203+
static const std::string http_header_trailer;
204+
static const std::string http_header_transfer_encoding;
205+
static const std::string http_header_upgrade;
206+
static const std::string http_header_user_agent;
207+
static const std::string http_header_vary;
208+
static const std::string http_header_via;
209+
static const std::string http_header_warning;
210+
static const std::string http_header_www_authenticate;
211+
212+
static const std::string http_version_1_0;
213+
static const std::string http_version_1_1;
214+
215+
static const std::string http_method_connect;
216+
static const std::string http_method_delete;
217+
static const std::string http_method_head;
218+
static const std::string http_method_get;
219+
static const std::string http_method_options;
220+
static const std::string http_method_post;
221+
static const std::string http_method_put;
222+
static const std::string http_method_trace;
223+
224+
static const std::string http_post_encoding_form_urlencoded;
225+
static const std::string http_post_encoding_multipart_formdata;
226+
static size_t tokenize_url(const std::string&,
227+
std::vector<std::string>& result, const char separator = '/'
228+
);
229+
static void standardize_url(const std::string&, std::string& result);
230230
};
231231

232232
#define COMPARATOR(x, y, op) \

0 commit comments

Comments
 (0)