19 #ifndef OF_HAVE_SOCKETS
20 # error No sockets available!
23 OF_ASSUME_NONNULL_BEGIN
49 #ifdef OF_HAVE_OPTIONAL_PROTOCOLS
64 didReceiveExceptionOnListeningSocket: (
OFException*)exception;
76 id <OFHTTPServerDelegate> _delegate;
81 #ifdef OF_HAVE_PROPERTIES
82 @property OF_NULLABLE_PROPERTY (copy)
OFString *host;
83 @property uint16_t port;
85 @property OF_NULLABLE_PROPERTY (copy)
OFString *name;
93 + (instancetype)server;
114 - (void)setPort: (uint16_t)port;
142 - (void)setName: (nullable
OFString*)name;
167 OF_ASSUME_NONNULL_END
The root class for all other classes inside ObjFW.
Definition: OFObject.h:364
A class for representing an HTTP request reply as a stream.
Definition: OFHTTPResponse.h:29
A delegate for OFHTTPServer.
Definition: OFHTTPServer.h:36
A class for handling strings.
Definition: OFString.h:91
A class which provides functions to create and use TCP sockets.
Definition: OFTCPSocket.h:61
A class for creating a simple HTTP server inside of applications.
Definition: OFHTTPServer.h:72
A class for storing HTTP requests.
Definition: OFHTTPRequest.h:73
The base class for all exceptions in ObjFW.
Definition: OFException.h:144