ObjFW  Diff

Differences From Artifact [c7f95080da]:

To Artifact [41b78f73e9]:


74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
	if (strcmp(string, "CONNECT") == 0)
		return OF_HTTP_REQUEST_METHOD_CONNECT;

	@throw [OFInvalidFormatException exception];
}

@implementation OFHTTPRequest
@synthesize URL = _URL, method = _method, headers = _headers;
@synthesize cookies = _cookies, body = _body, remoteAddress = _remoteAddress;

+ (instancetype)request
{
	return [[[self alloc] init] autorelease];
}

+ (instancetype)requestWithURL: (OFURL *)URL







|
|







74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
	if (strcmp(string, "CONNECT") == 0)
		return OF_HTTP_REQUEST_METHOD_CONNECT;

	@throw [OFInvalidFormatException exception];
}

@implementation OFHTTPRequest
@synthesize URL = _URL, method = _method, headers = _headers, body = _body;
@synthesize remoteAddress = _remoteAddress;

+ (instancetype)request
{
	return [[[self alloc] init] autorelease];
}

+ (instancetype)requestWithURL: (OFURL *)URL
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
	return self;
}

- (void)dealloc
{
	[_URL release];
	[_headers release];
	[_cookies release];
	[_body release];
	[_remoteAddress release];

	[super dealloc];
}

- copy







<







116
117
118
119
120
121
122

123
124
125
126
127
128
129
	return self;
}

- (void)dealloc
{
	[_URL release];
	[_headers release];

	[_body release];
	[_remoteAddress release];

	[super dealloc];
}

- copy