#import <HttpdKit/HttpParser.h>

int main(int argc, char **argv, char **env) {
	[NSProcessInfo initializeWithArguments: argv count: argc environment: env];
	id pool = [[NSAutoreleasePool alloc] init];
	id parser = [[HttpParser alloc] init];
	NSEnumerator *enumerator;
	id key;
	int i;

	for(i = 1; i < argc; i++) {
		[parser execute: [NSMutableData dataWithContentsOfFile: [NSString stringWithCString: argv[i]]]];
		[parser finish];
		printf("%@\n", [[parser requestObject] description]);
		[parser reset];
	}
}
