@@ -77,11 +77,11 @@ * @param client The OFHTTPClient which wants to follow a redirect * @param URL The URL to which it will follow a redirect * @param request The request for which the OFHTTPClient wants to redirect * @return A boolean whether the OFHTTPClient should follow the redirect */ -- (BOOL)client: (OFHTTPClient*)client +- (bool)client: (OFHTTPClient*)client shouldFollowRedirect: (OFURL*)URL request: (OFHTTPRequest*)request; @end /*! @@ -88,16 +88,16 @@ * @brief A class for performing HTTP requests. */ @interface OFHTTPClient: OFObject { id _delegate; - BOOL _insecureRedirectsAllowed; + bool _insecureRedirectsAllowed; } #ifdef OF_HAVE_PROPERTIES @property (assign) id delegate; -@property BOOL insecureRedirectsAllowed; +@property bool insecureRedirectsAllowed; #endif /*! * @brief Creates a new OFHTTPClient. * @@ -122,18 +122,18 @@ /*! * @brief Sets whether redirects from HTTPS to HTTP are allowed. * * @param allowed Whether redirects from HTTPS to HTTP are allowed */ -- (void)setInsecureRedirectsAllowed: (BOOL)allowed; +- (void)setInsecureRedirectsAllowed: (bool)allowed; /*! * @brief Returns whether redirects from HTTPS to HTTP will be allowed * * @return Whether redirects from HTTPS to HTTP will be allowed */ -- (BOOL)insecureRedirectsAllowed; +- (bool)insecureRedirectsAllowed; /*! * @brief Performs the specified HTTP request */ - (OFHTTPRequestReply*)performRequest: (OFHTTPRequest*)request;