@@ -50,11 +50,11 @@ class simple_resource : public http_resource
5050 public:
5151 const http_response render_GET (const http_request& req)
5252 {
53- return http_response ( http_response_builder (" OK" , 200 , " text/plain" ).string_response () );
53+ return http_response_builder (" OK" , 200 , " text/plain" ).string_response ();
5454 }
5555 const http_response render_POST (const http_request& req)
5656 {
57- return http_response ( http_response_builder (req.get_arg (" arg1" )+req.get_arg (" arg2" ), 200 , " text/plain" ).string_response () );
57+ return http_response_builder (req.get_arg (" arg1" )+req.get_arg (" arg2" ), 200 , " text/plain" ).string_response ();
5858 }
5959};
6060
@@ -63,7 +63,7 @@ class long_content_resource : public http_resource
6363 public:
6464 const http_response render_GET (const http_request& req)
6565 {
66- return http_response ( http_response_builder (lorem_ipsum, 200 , " text/plain" ).string_response () );
66+ return http_response_builder (lorem_ipsum, 200 , " text/plain" ).string_response ();
6767 }
6868};
6969
@@ -74,7 +74,7 @@ class header_test_resource : public http_resource
7474 {
7575 http_response_builder hrb (" OK" , 200 , " text/plain" );
7676 hrb.with_header (" KEY" , " VALUE" );
77- return http_response (hrb.string_response ()) ;
77+ return http_response (hrb.string_response ();
7878 }
7979};
8080
@@ -83,23 +83,23 @@ class complete_test_resource : public http_resource
8383 public:
8484 const http_response render_GET (const http_request& req)
8585 {
86- return http_response ( http_response_builder (" OK" , 200 , " text/plain" ).string_response () );
86+ return http_response_builder (" OK" , 200 , " text/plain" ).string_response ();
8787 }
8888 const http_response render_POST (const http_request& req)
8989 {
90- return http_response ( http_response_builder (" OK" , 200 , " text/plain" ).string_response () );
90+ return http_response_builder (" OK" , 200 , " text/plain" ).string_response ();
9191 }
9292 const http_response render_PUT (const http_request& req)
9393 {
94- return http_response ( http_response_builder (" OK" , 200 , " text/plain" ).string_response () );
94+ return http_response_builder (" OK" , 200 , " text/plain" ).string_response ();
9595 }
9696 const http_response render_DELETE (const http_request& req)
9797 {
98- return http_response ( http_response_builder (" OK" , 200 , " text/plain" ).string_response () );
98+ return http_response_builder (" OK" , 200 , " text/plain" ).string_response ();
9999 }
100100 const http_response render_CONNECT (const http_request& req)
101101 {
102- return http_response ( http_response_builder (" OK" , 200 , " text/plain" ).string_response () );
102+ return http_response_builder (" OK" , 200 , " text/plain" ).string_response ();
103103 }
104104};
105105
@@ -108,7 +108,7 @@ class only_render_resource : public http_resource
108108 public:
109109 const http_response render (const http_request& req)
110110 {
111- return http_response ( http_response_builder (" OK" , 200 , " text/plain" ).string_response () );
111+ return http_response_builder (" OK" , 200 , " text/plain" ).string_response ();
112112 }
113113};
114114
@@ -117,7 +117,7 @@ class ok_resource : public http_resource
117117 public:
118118 const http_response render_GET (const http_request& req)
119119 {
120- return http_response ( http_response_builder (" OK" , 200 , " text/plain" ).string_response () );
120+ return http_response_builder (" OK" , 200 , " text/plain" ).string_response ();
121121 }
122122};
123123
@@ -126,7 +126,7 @@ class nok_resource : public http_resource
126126 public:
127127 const http_response render_GET (const http_request& req)
128128 {
129- return http_response ( http_response_builder (" NOK" , 200 , " text/plain" ).string_response () );
129+ return http_response_builder (" NOK" , 200 , " text/plain" ).string_response ();
130130 }
131131};
132132
0 commit comments