19 #ifndef OF_HAVE_SOCKETS 20 # error No sockets available! 23 OF_ASSUME_NONNULL_BEGIN
62 didReceiveExceptionOnListeningSocket: (
OFException *)exception;
93 id <OFHTTPServerDelegate> _Nullable _delegate;
111 @property OF_NULLABLE_PROPERTY (
nonatomic, assign)
112 id <OFHTTPServerDelegate> delegate;
127 + (instancetype)server;
142 OF_ASSUME_NONNULL_END
uint16_t port
Definition: OFHTTPServer.h:106
nonatomic
Definition: OFHTTPServer.h:101
A delegate for OFHTTPServer.
Definition: OFHTTPServer.h:29
id copy()
Returns the class.
Definition: OFObject.m:1133
A class for handling strings.
Definition: OFString.h:114
A class for creating a simple HTTP server inside of applications.
Definition: OFHTTPServer.h:89
void stop()
Stops the HTTP server, meaning it will not accept any new incoming connections, but still handle exis...
Definition: OFHTTPServer.m:729
The base class for all exceptions in ObjFW.
Definition: OFException.h:143
A class which provides methods to create and use TCP sockets.
Definition: OFTCPSocket.h:61
The root class for all other classes inside ObjFW.
Definition: OFObject.h:379
A class for storing HTTP requests.
Definition: OFHTTPRequest.h:69
A class for representing an HTTP request reply as a stream.
Definition: OFHTTPResponse.h:30
void start()
Starts the HTTP server in the current thread's run loop.
Definition: OFHTTPServer.m:710