From d74e13e2af523df03c2234407a5e53ac06573cce Mon Sep 17 00:00:00 2001 From: Angelo Di Paolo Date: Thu, 3 Dec 2015 17:28:32 -0500 Subject: [PATCH] Change NSURLRequest's HTTPMethod stub to readonly and add setter stub to NSMutableURLRequest --- Foundation/NSURLRequest.swift | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Foundation/NSURLRequest.swift b/Foundation/NSURLRequest.swift index 110b18a395..796c06ccfd 100644 --- a/Foundation/NSURLRequest.swift +++ b/Foundation/NSURLRequest.swift @@ -243,7 +243,7 @@ public class NSURLRequest : NSObject, NSSecureCoding, NSCopying, NSMutableCopyin @abstract Returns the HTTP request method of the receiver. @result the HTTP request method of the receiver. */ - public var HTTPMethod: String? { get { NSUnimplemented() } set { NSUnimplemented() } } + public var HTTPMethod: String? { get { NSUnimplemented() }} /*! @method allHTTPHeaderFields @@ -322,6 +322,13 @@ public class NSMutableURLRequest : NSURLRequest { */ /*@NSCopying*/ public override var mainDocumentURL: NSURL? { get { NSUnimplemented() } set { NSUnimplemented() } } + /*! + @method HTTPMethod + @abstract Sets the HTTP request method of the receiver. + @result the HTTP request method of the receiver. + */ + public override var HTTPMethod: String? { get { NSUnimplemented() } set { NSUnimplemented() } } + /*! @method setValue:forHTTPHeaderField: @abstract Sets the value of the given HTTP header field.