@@ -89,11 +89,11 @@ + (instancetype)requestWithURL: (OFURL *)URL { return [[[self alloc] initWithURL: URL] autorelease]; } -- init +- (instancetype)init { self = [super init]; _method = OF_HTTP_REQUEST_METHOD_GET; _protocolVersion.major = 1; @@ -100,11 +100,11 @@ _protocolVersion.minor = 1; return self; } -- initWithURL: (OFURL *)URL +- (instancetype)initWithURL: (OFURL *)URL { self = [self init]; @try { _URL = [URL copy]; @@ -124,11 +124,11 @@ [_remoteAddress release]; [super dealloc]; } -- copy +- (id)copy { OFHTTPRequest *copy = [[OFHTTPRequest alloc] init]; @try { copy->_method = _method;