NuHTTPServer
A simple web server.
Superclass: NSObject
Declared in: objc/NuHTTPServer.h
A NuHTTPServer provides a simple web server that runs in the Cocoa event loop.
Methods
| - |
(void) |
addRequest: |
(id) request |
Accept and handle a new request with a given URL and connection.
in objc/NuHTTPServer.h
| - |
(void) |
closeConnection: |
(NuHTTPConnection *) connection |
Close a specified connection.
in objc/NuHTTPServer.h
| - |
(NSArray *) |
connections |
Get the currently open connections to the server.
in objc/NuHTTPServer.h
| - |
(id) |
initWithTCPPort: |
(unsigned) port |
|
controller: |
(id) controller |
Initialize a web server to run on a specified port with a given controller.
in objc/NuHTTPServer.h
| - |
(void) |
newConnection: |
(NSNotification *) notification |
Create a new connection in response to a notification.
in objc/NuHTTPServer.h
| - |
(void) |
replyToRequest: |
(NSDictionary *) request |
|
withResponse: |
(NSDictionary *) response |
Reply to a connection with a given status code, headers, and message body.
in objc/NuHTTPServer.h