@@ -324,18 +324,14 @@ class _http_server_context
324
324
class _http_response : public http ::details::http_msg_base
325
325
{
326
326
public:
327
- _http_response () : m_status_code((std::numeric_limits<uint16_t >::max)()), m_error_code( 0 ) { }
327
+ _http_response () : m_status_code((std::numeric_limits<uint16_t >::max)()) { }
328
328
329
- _http_response (http::status_code code) : m_status_code(code), m_error_code( 0 ) {}
329
+ _http_response (http::status_code code) : m_status_code(code) {}
330
330
331
331
http::status_code status_code () const { return m_status_code; }
332
332
333
333
void set_status_code (http::status_code code) { m_status_code = code; }
334
334
335
- unsigned long error_code () const { return m_error_code; }
336
-
337
- void set_error_code (unsigned long code) { m_error_code = code; }
338
-
339
335
const http::reason_phrase & reason_phrase () const { return m_reason_phrase; }
340
336
341
337
void set_reason_phrase (http::reason_phrase reason) { m_reason_phrase = std::move (reason); }
@@ -349,8 +345,6 @@ class _http_response : public http::details::http_msg_base
349
345
private:
350
346
std::unique_ptr<_http_server_context> m_server_context;
351
347
352
- unsigned long m_error_code;
353
-
354
348
http::status_code m_status_code;
355
349
http::reason_phrase m_reason_phrase;
356
350
};
@@ -596,18 +590,6 @@ class http_response
596
590
return pplx::create_task (impl->_get_data_available ()).then ([impl](utility::size64_t ) -> http_response { return http_response (impl); });
597
591
}
598
592
599
- // / <summary>
600
- // / Gets the error code of the response. This is used for errors other than HTTP status codes.
601
- // / </summary>
602
- // / <returns>The error code.</returns>
603
- unsigned long error_code () const { return _m_impl->error_code (); }
604
-
605
- // / <summary>
606
- // / Sets the error code of the response. This is used for errors other than HTTP status codes.
607
- // / </summary>
608
- // / <param name="code">The error code</param>
609
- void set_error_code (unsigned long code) const { _m_impl->set_error_code (code); }
610
-
611
593
std::shared_ptr<http::details::_http_response> _get_impl () const { return _m_impl; }
612
594
613
595
http::details::_http_server_context * _get_server_context () const { return _m_impl->_get_server_context (); }
@@ -620,7 +602,6 @@ class http_response
620
602
{
621
603
}
622
604
623
- private:
624
605
std::shared_ptr<http::details::_http_response> _m_impl;
625
606
};
626
607
0 commit comments