22 #ifndef OF_HAVE_SOCKETS 23 # error No sockets available! 26 OF_ASSUME_NONNULL_BEGIN
52 requestBody: (nullable
OFStream *)requestBody
68 didReceiveExceptionOnListeningSocket: (
id)exception;
88 exception: (
id)exception;
96 OF_SUBCLASSING_RESTRICTED
101 id <OFHTTPServerDelegate> _Nullable _delegate;
104 #ifdef OF_HAVE_THREADS 105 size_t _numberOfThreads, _nextThreadIndex;
116 @property OF_NULLABLE_PROPERTY (copy, nonatomic)
OFString *host;
124 @property (nonatomic) uint16_t port;
129 @property OF_NULLABLE_PROPERTY (assign, nonatomic)
132 #ifdef OF_HAVE_THREADS 144 @property (nonatomic)
size_t numberOfThreads;
153 @property OF_NULLABLE_PROPERTY (copy, nonatomic)
OFString *name;
160 + (instancetype)server;
177 OF_ASSUME_NONNULL_END
An abstract class for storing objects in an array.
Definition: OFArray.h:107
The root class for all other classes inside ObjFW.
Definition: OFObject.h:690
A class for representing an HTTP request response as a stream.
Definition: OFHTTPResponse.h:36
A base class for different types of streams.
Definition: OFStream.h:278
A delegate for OFHTTPServer.
Definition: OFHTTPServer.h:33
A class for handling strings.
Definition: OFString.h:142
A class which provides methods to create and use TCP sockets.
Definition: OFTCPSocket.h:85
A class for creating a simple HTTP server inside of applications.
Definition: OFHTTPServer.h:97
A class for storing HTTP requests.
Definition: OFHTTPRequest.h:73