@@ -38,12 +38,12 @@ simple response to any HTTP request.
3838
3939 int
4040 main(int argc, char * argv[]) {
41-
41+
4242 if (argc != 3) {
4343 std::cerr << "Usage: " << argv[0] << " address port" << std::endl;
4444 return 1;
4545 }
46-
46+
4747 try {
4848 hello_world handler;
4949 server server_(argv[1], argv[2], handler);
@@ -53,7 +53,7 @@ simple response to any HTTP request.
5353 std::cerr << e.what() << std::endl;
5454 return 1;
5555 }
56-
56+
5757 return 0;
5858 }
5959
@@ -115,9 +115,9 @@ This header contains all the code needed to develop an HTTP server with
115115``hello_world`` is a functor class which handles HTTP requests. All
116116the operator does here is return an HTTP response with HTTP code 200
117117and the body ``"Hello, <ip>!"``. The ``<ip>`` in this case would be
118- the IP address of the client that made the request.
118+ the IP address of the client that made the request.
119119
120- There are a number of pre-defined stock replies differentiated by
120+ There are a number of pre-defined stock replies differentiated by
121121status code with configurable bodies.
122122
123123All the supported enumeration values for the response status codes can be found
@@ -134,10 +134,10 @@ the port on which the server will listen. The third argument is the
134134the handler object defined previously.
135135
136136.. note:: In this example, the server is specifically made to be single-threaded.
137- In a multi-threaded server, you would invoke the ``hello_world::run`` member
138- method in a set of threads. In a multi-threaded environment you would also
139- make sure that the handler does all the necessary synchronization for shared
140- resources across threads. The handler is passed by reference to the server
141- constructor and you should ensure that any calls to the ``operator()`` overload
137+ In a multi-threaded server, you would invoke the ``hello_world::run`` member
138+ method in a set of threads. In a multi-threaded environment you would also
139+ make sure that the handler does all the necessary synchronization for shared
140+ resources across threads. The handler is passed by reference to the server
141+ constructor and you should ensure that any calls to the ``operator()`` overload
142142 are thread-safe.
143143