@@ -81,15 +81,23 @@ */ @property (copy, nonatomic) OFURL *URL; /** * @brief The protocol version of the HTTP request. + * + * @throw OFUnsupportedVersionException The specified version cannot be set + * because it is not supported */ @property (nonatomic) OFHTTPRequestProtocolVersion protocolVersion; /** * @brief The protocol version of the HTTP request as a string. + * + * @throw OFUnsupportedVersionException The specified version cannot be set + * because it is not supported + * @throw OFInvalidFormatException The specified version cannot be set because + * it is not in a valid format */ @property (copy, nonatomic) OFString *protocolVersionString; /** * @brief The request method of the HTTP request. @@ -143,12 +151,14 @@ /** * @brief Returns the request method for the specified string. * * @param string The string for which the request method should be returned * @return The request method for the specified string + * @throw OFInvalidFormatException The specified string is not a valid HTTP + * request method */ extern OFHTTPRequestMethod OFHTTPRequestMethodParseName(OFString *string); #ifdef __cplusplus } #endif OF_ASSUME_NONNULL_END