@@ -126,12 +126,19 @@ /*! * @brief Starts the HTTP server in the current thread's runloop. */ - (void)start; +/*! + * @brief Stops the HTTP server, meaning it will not accept any new incoming + * connections, but still handle existing connections until they are + * finished or timed out. + */ +- (void)stop; + - (BOOL)OF_socket: (OFTCPSocket*)socket didAcceptSocket: (OFTCPSocket*)clientSocket exception: (OFException*)exception; @end @interface OFObject (OFHTTPServerDelegate) @end