18 #ifndef OF_HAVE_SOCKETS
19 # error No sockets available!
22 OF_ASSUME_NONNULL_BEGIN
48 requestBody: (nullable
OFStream *)requestBody
64 didReceiveExceptionOnListeningSocket: (
id)exception;
84 exception: (
id)exception;
92 OF_SUBCLASSING_RESTRICTED
97 id <OFHTTPServerDelegate> _Nullable _delegate;
100 #ifdef OF_HAVE_THREADS
101 size_t _numberOfThreads, _nextThreadIndex;
120 @property (nonatomic) uint16_t port;
125 @property OF_NULLABLE_PROPERTY (assign, nonatomic)
128 #ifdef OF_HAVE_THREADS
140 @property (nonatomic)
size_t numberOfThreads;
156 + (instancetype)server;
173 OF_ASSUME_NONNULL_END
An abstract class for storing objects in an array.
Definition: OFArray.h:105
A class for storing HTTP requests.
Definition: OFHTTPRequest.h:71
A class for representing an HTTP request response as a stream.
Definition: OFHTTPResponse.h:33
A class for creating a simple HTTP server inside of applications.
Definition: OFHTTPServer.h:94
OFString * name
The server name the server presents to clients.
Definition: OFHTTPServer.h:149
OFString * host
The host on which the HTTP server will listen.
Definition: OFHTTPServer.h:112
The root class for all other classes inside ObjFW.
Definition: OFObject.h:688
A base class for different types of streams.
Definition: OFStream.h:188
A class for handling strings.
Definition: OFString.h:135
A class which provides methods to create and use TCP sockets.
Definition: OFTCPSocket.h:67
A delegate for OFHTTPServer.
Definition: OFHTTPServer.h:36