23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
@class OFHTTPServer;
@class OFHTTPRequest;
@class OFHTTPResponse;
@class OFTCPSocket;
@class OFException;
/*!
* @brief A delegate for OFHTTPServer.
*/
@protocol OFHTTPServerDelegate <OFObject>
/*!
* @brief This method is called when the HTTP server received a request from a
* client.
*
|
>
>
|
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
@class OFHTTPServer;
@class OFHTTPRequest;
@class OFHTTPResponse;
@class OFTCPSocket;
@class OFException;
/*!
* @protocol OFHTTPServerDelegate OFHTTPServer.h ObjFW/OFHTTPServer.h
*
* @brief A delegate for OFHTTPServer.
*/
@protocol OFHTTPServerDelegate <OFObject>
/*!
* @brief This method is called when the HTTP server received a request from a
* client.
*
|
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
* connections again by calling @ref OFHTTPServer::start again.
*/
- (bool)server: (OFHTTPServer*)server
didReceiveExceptionOnListeningSocket: (OFException*)exception;
@end
/*!
* @brief A class for creating a simple HTTP server inside of applications.
*/
@interface OFHTTPServer: OFObject
{
OFString *_host;
uint16_t _port;
id <OFHTTPServerDelegate> _delegate;
|
>
>
|
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
* connections again by calling @ref OFHTTPServer::start again.
*/
- (bool)server: (OFHTTPServer*)server
didReceiveExceptionOnListeningSocket: (OFException*)exception;
@end
/*!
* @class OFHTTPServer OFHTTPServer.h ObjFW/OFHTTPServer.h
*
* @brief A class for creating a simple HTTP server inside of applications.
*/
@interface OFHTTPServer: OFObject
{
OFString *_host;
uint16_t _port;
id <OFHTTPServerDelegate> _delegate;
|