@@ -47,17 +47,19 @@ @interface OFHTTPServer: OFObject { OFString *host; uint16_t port; id delegate; + OFString *name; OFTCPSocket *listeningSocket; } #ifdef OF_HAVE_PROPERTIES @property (copy) OFString *host; @property uint16_t port; @property (assign) id delegate; +@property (copy) OFString *name; #endif /*! * @brief Creates a new HTTP server. * @@ -105,10 +107,24 @@ * * @return The delegate for the HTTP server */ - (id )delegate; +/*! + * @brief Sets the server name the server presents to clients. + * + * @param name The server name to present to clients + */ +- (void)setName: (OFString*)name; + +/*! + * @brief Returns the server name the server presents to clients. + * + * @return The server name the server presents to clients + */ +- (OFString*)name; + /*! * @brief Starts the HTTP server in the current thread's runloop. */ - (void)start;