22 #ifndef OF_HAVE_SOCKETS
23 # error No sockets available!
26 OF_ASSUME_NONNULL_BEGIN
28 @class OFArray OF_GENERIC(ObjectType);
53 requestBody: (nullable
OFStream *)requestBody
81 didEncounterException: (
id)exception
99 didReceiveExceptionOnListeningSocket: (
id)exception
100 OF_DEPRECATED(ObjFW, 1, 3,
101 "Use -[server:didEncounterException:request:response:] instead");
123 exception: (
id)exception
124 OF_DEPRECATED(ObjFW, 1, 3,
125 "Use -[server:didEncounterException:request:response:] instead");
133 OF_SUBCLASSING_RESTRICTED
138 id <OFHTTPServerDelegate> _Nullable _delegate;
143 #ifdef OF_HAVE_THREADS
144 size_t _numberOfThreads, _nextThreadIndex;
155 @property OF_NULLABLE_PROPERTY (copy, nonatomic)
OFString *host;
163 @property (nonatomic) uint16_t port;
171 @property (nonatomic)
bool usesTLS;
176 @property OF_NULLABLE_PROPERTY (copy, nonatomic)
182 @property OF_NULLABLE_PROPERTY (assign, nonatomic)
185 #ifdef OF_HAVE_THREADS
197 @property (nonatomic)
size_t numberOfThreads;
206 @property OF_NULLABLE_PROPERTY (copy, nonatomic)
OFString *name;
213 + (instancetype)server;
230 OF_ASSUME_NONNULL_END
An abstract class for storing objects in an array.
Definition: OFArray.h:109
A class for storing HTTP requests.
Definition: OFHTTPRequest.h:75
A class for representing an HTTP request response as a stream.
Definition: OFHTTPResponse.h:37
A class for creating a simple HTTP server inside of applications.
Definition: OFHTTPServer.h:135
The root class for all other classes inside ObjFW.
Definition: OFObject.h:692
A base class for different types of streams.
Definition: OFStream.h:280
A class for handling strings.
Definition: OFString.h:143
A class which provides methods to create and use TCP sockets.
Definition: OFTCPSocket.h:86
An X.509 certificate, optionally with an associated private key.
Definition: OFX509Certificate.h:33
A delegate for OFHTTPServer.
Definition: OFHTTPServer.h:41