Sha256: 5a15daaf9cfe6bcb55633726b7e779bb115b592c0086bf8c8edafc83f63bdff0

Contents?: true

Size: 1.32 KB

Versions: 25

Compression:

Stored size: 1.32 KB

Contents

//
//  HTTPResponseHandler.h
//  TextTransfer
//
//  Created by Matt Gallagher on 2009/07/13.
//  Copyright 2009 Matt Gallagher. All rights reserved.
//
//  Permission is given to use this source code file, free of charge, in any
//  project, commercial or otherwise, entirely at your risk, with the condition
//  that any redistribution (in part or whole) of source code must retain
//  this copyright and permission notice. Attribution in compiled projects is
//  appreciated but not required.
//

#if TARGET_OS_IPHONE
#import <UIKit/UIKit.h>
#import <CFNetwork/CFNetwork.h>
#else
#import <Cocoa/Cocoa.h>
#endif

@class iCukeHTTPServer;

@interface iCukeHTTPResponseHandler : NSObject
{
	CFHTTPMessageRef request;
	NSString *requestMethod;
	NSDictionary *headerFields;
	NSFileHandle *fileHandle;
	iCukeHTTPServer *server;
	NSURL *url;
}

+ (NSUInteger)priority;
+ (void)registerHandler:(Class)handlerClass;

+ (iCukeHTTPResponseHandler *)handlerForRequest:(CFHTTPMessageRef)aRequest
	fileHandle:(NSFileHandle *)requestFileHandle
	server:(iCukeHTTPServer *)aServer;

- (id)initWithRequest:(CFHTTPMessageRef)aRequest
	method:(NSString *)method
	url:(NSURL *)requestURL
	headerFields:(NSDictionary *)requestHeaderFields
	fileHandle:(NSFileHandle *)requestFileHandle
	server:(iCukeHTTPServer *)aServer;
- (void)startResponse;
- (void)endResponse;

@end

Version data entries

25 entries across 21 versions & 1 rubygems

Version Path
iCuke-0.4.9 ext/iCuke/iCukeHTTPResponseHandler.h
iCuke-0.4.8 ext/iCuke/iCukeHTTPResponseHandler.h
iCuke-0.4.7 ext/iCuke/iCukeHTTPResponseHandler.h
iCuke-0.4.6 ext/iCuke/iCukeHTTPResponseHandler.h
iCuke-0.4.5 ext/iCuke/iCukeHTTPResponseHandler.h