Skip to content

Commit ed89a44

Browse files
committed
Merge pull request #14 from angelodipaolo/url-request-http-method-readonly
Change NSURLRequest's HTTPMethod stub to readonly
2 parents 2100057 + d74e13e commit ed89a44

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Foundation/NSURLRequest.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ public class NSURLRequest : NSObject, NSSecureCoding, NSCopying, NSMutableCopyin
243243
@abstract Returns the HTTP request method of the receiver.
244244
@result the HTTP request method of the receiver.
245245
*/
246-
public var HTTPMethod: String? { get { NSUnimplemented() } set { NSUnimplemented() } }
246+
public var HTTPMethod: String? { get { NSUnimplemented() }}
247247

248248
/*!
249249
@method allHTTPHeaderFields
@@ -322,6 +322,13 @@ public class NSMutableURLRequest : NSURLRequest {
322322
*/
323323
/*@NSCopying*/ public override var mainDocumentURL: NSURL? { get { NSUnimplemented() } set { NSUnimplemented() } }
324324

325+
/*!
326+
@method HTTPMethod
327+
@abstract Sets the HTTP request method of the receiver.
328+
@result the HTTP request method of the receiver.
329+
*/
330+
public override var HTTPMethod: String? { get { NSUnimplemented() } set { NSUnimplemented() } }
331+
325332
/*!
326333
@method setValue:forHTTPHeaderField:
327334
@abstract Sets the value of the given HTTP header field.

0 commit comments

Comments
 (0)