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:103
The root class for all other classes inside ObjFW.
Definition: OFObject.h:686
A class for representing an HTTP request response as a stream.
Definition: OFHTTPResponse.h:32
A base class for different types of streams.
Definition: OFStream.h:186
A delegate for OFHTTPServer.
Definition: OFHTTPServer.h:29
A class for handling strings.
Definition: OFString.h:134
A class which provides methods to create and use TCP sockets.
Definition: OFTCPSocket.h:66
OFString * name
The server name the server presents to clients.
Definition: OFHTTPServer.h:149
A class for creating a simple HTTP server inside of applications.
Definition: OFHTTPServer.h:93
A class for storing HTTP requests.
Definition: OFHTTPRequest.h:69
OFString * host
The host on which the HTTP server will listen.
Definition: OFHTTPServer.h:112