request meta
parent
848c56099e
commit
c623b59b08
@ -1,8 +1,9 @@
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#import "ui_darwin.h"
|
||||
|
||||
@protocol EventListener
|
||||
- (void) serverDidSetRoot:(NSString *)path;
|
||||
- (void) serverDidBeginHandlingRequest;
|
||||
- (void) serverDidBeginHandlingRequest:(RequestMeta *)meta;
|
||||
- (void) serverDidFinishHandlingRequest;
|
||||
@end
|
||||
|
||||
|
@ -1,6 +1,18 @@
|
||||
struct RequestMeta {
|
||||
char *path;
|
||||
};
|
||||
|
||||
typedef struct RequestMeta RequestMeta;
|
||||
|
||||
struct ResponseMeta {
|
||||
|
||||
};
|
||||
|
||||
typedef struct ResponseMeta ResponseMeta;
|
||||
|
||||
void initialize();
|
||||
int run();
|
||||
void shutdown();
|
||||
void set_root(char *);
|
||||
void begin_request();
|
||||
void begin_request(RequestMeta *);
|
||||
void end_request();
|
||||
|
Loading…
Reference in New Issue