@@ -17,11 +17,11 @@ #import "OFSocket.h" #import "OFString.h" OF_ASSUME_NONNULL_BEGIN -@class OFURL; +@class OFURI; @class OFDictionary OF_GENERIC(KeyType, ObjectType); @class OFData; @class OFString; /** @file */ @@ -66,22 +66,22 @@ * @brief A class for storing HTTP requests. */ OF_SUBCLASSING_RESTRICTED @interface OFHTTPRequest: OFObject { - OFURL *_URL; + OFURI *_URI; OFHTTPRequestMethod _method; OFHTTPRequestProtocolVersion _protocolVersion; OFDictionary OF_GENERIC(OFString *, OFString *) *_Nullable _headers; OFSocketAddress _remoteAddress; bool _hasRemoteAddress; } /** - * @brief The URL of the HTTP request. + * @brief The URI of the HTTP request. */ -@property (copy, nonatomic) OFURL *URL; +@property (copy, nonatomic) OFURI *URI; /** * @brief The protocol version of the HTTP request. * * @throw OFUnsupportedVersionException The specified version cannot be set @@ -116,24 +116,24 @@ * @note The setter creates a copy of the remote address. */ @property OF_NULLABLE_PROPERTY (nonatomic) const OFSocketAddress *remoteAddress; /** - * @brief Creates a new OFHTTPRequest with the specified URL. + * @brief Creates a new OFHTTPRequest with the specified URI. * - * @param URL The URL for the request + * @param URI The URI for the request * @return A new, autoreleased OFHTTPRequest */ -+ (instancetype)requestWithURL: (OFURL *)URL; ++ (instancetype)requestWithURI: (OFURI *)URI; /** - * @brief Initializes an already allocated OFHTTPRequest with the specified URL. + * @brief Initializes an already allocated OFHTTPRequest with the specified URI. * - * @param URL The URL for the request + * @param URI The URI for the request * @return An initialized OFHTTPRequest */ -- (instancetype)initWithURL: (OFURL *)URL; +- (instancetype)initWithURI: (OFURI *)URI; - (instancetype)init OF_UNAVAILABLE; @end #ifdef __cplusplus