18 #ifndef OF_HAVE_SOCKETS
19 # error No sockets available!
22 OF_ASSUME_NONNULL_BEGIN
48 requestBody: (nullable
OFStream *)requestBody
64 didReceiveExceptionOnListeningSocket: (
id)exception;
83 exception: (
id)exception;
91 OF_SUBCLASSING_RESTRICTED
97 OFString *_Nullable _certificateFile, *_Nullable _privateKeyFile;
98 const char *_Nullable _privateKeyPassphrase;
102 #ifdef OF_HAVE_THREADS
103 size_t _numberOfThreads, _nextThreadIndex;
122 @property (nonatomic) uint16_t port;
130 @property (nonatomic)
bool usesTLS;
157 @property OF_NULLABLE_PROPERTY (assign, nonatomic)
158 const
char *privateKeyPassphrase;
163 @property OF_NULLABLE_PROPERTY (assign, nonatomic)
166 #ifdef OF_HAVE_THREADS
178 @property (nonatomic)
size_t numberOfThreads;
194 + (instancetype)server;
209 OF_ASSUME_NONNULL_END
struct objc_object * id
A pointer to any object.
Definition: ObjFWRT.h:90
An abstract class for storing objects in an array.
Definition: OFArray.h:92
A class for storing HTTP requests.
Definition: OFHTTPRequest.h:74
A class for representing an HTTP request reply as a stream.
Definition: OFHTTPResponse.h:30
A class for creating a simple HTTP server inside of applications.
Definition: OFHTTPServer.h:93
OFString * certificateFile
The path to the X.509 certificate file to use for TLS.
Definition: OFHTTPServer.h:138
OFString * name
The server name the server presents to clients.
Definition: OFHTTPServer.h:187
OFString * privateKeyFile
The path to the PKCS#8 private key file to use for TLS.
Definition: OFHTTPServer.h:146
OFString * host
The host on which the HTTP server will listen.
Definition: OFHTTPServer.h:114
The root class for all other classes inside ObjFW.
Definition: OFObject.h:520
A base class for different types of streams.
Definition: OFStream.h:191
A class for handling strings.
Definition: OFString.h:132
A class which provides methods to create and use TCP sockets.
Definition: OFTCPSocket.h:67
A delegate for OFHTTPServer.
Definition: OFHTTPServer.h:36