Skip to content

URL redirect block #269

wants to merge 22 commits into from

3 participants


Added a block to handle URL Redirects

mattt and others added some commits Mar 2, 2012
@mattt mattt Using class method swizzling to dynamically modify class method value…
…s for acceptable status codes and content types
@mattt mattt Adding documentation for AFHTTPRequestOperation +addAcceptableStatusC…
…odes / +addAcceptableContentTypes
@mattt mattt Adding new documentation header for AFHTTPClient +canProcessRequest 01572ee
@mattt mattt Adding AFContentTypesFromHTTPHeader() 68eb634
@mattt mattt Refactoring +canProcessRequest: and content type acceptability 8bfee9e
@mattt mattt Removing unused overrided implementation of HTTPRequestOperationWithR…
…equest:success:failure: in AFImageRequestOperation
@kcharwood kcharwood Added additional Reachability information to the AFHTTPClient
As discussed by @mattt in #197, this pull request takes a stab at
exposing the Reachability state via an enum property, similar to
Reachability itself.
@kcharwood kcharwood Changed AFReachabilityStatus naming scheme to be more clear 346c56b
@mattt mattt Merge branch 'AFHTTPClient-Reachability-Experiment' of https://github…
….com/kcharwood/AFNetworking into kcharwood-AFHTTPClient-Reachability-Experiment
@mattt mattt Renaming AFNetworkReachabilityStatus and changing to bitmask
Fixing AFReachabilityCallback to give correct WiFi reachability value

Minor formatting and refactoring
@mattt mattt Merge branch 'experimental-overrideable-http-operation-validation' in…
…to experimental-1.0RC1
@mattt mattt Add setReachabilityStatusChangeBlock to AFHTTPClient initialization fa01557
@mattt mattt Reverting network reachability status from bitmask to enum 14227aa
@mattt mattt Circumventing need to set initial network reachability status block t…
…o nil by wrapping callback in -startMonitoringNetworkReachability
@mattt mattt -cStringUsingEncoding:NSUTF8Encoding -> -UTF8String fe0f1ce
@mattt mattt Constructing image in background queue ac20e02
@kcharwood kcharwood Updated Reachability to handle an IP Address or a Host name
Note this does not fix the issue with the status not being correctly
reported for a 3G connection.
@kcharwood kcharwood Refactored starting up reachability 428c13e
@kcharwood kcharwood Refactored the Reachability status logic 50c136f
@mattt mattt Merge branch 'master' into experimental-expanded-network-reachability 700ad2a
@mattt mattt Refactoring network reachability functions
Using inet_pton instead of regexp to detect whether a URL host is an IP address
@kcharwood kcharwood Added a block to handle URL redirects c050092
@kcharwood kcharwood closed this Mar 24, 2012

I think you've dun gone crazy a little matt... method swizzling and set associated object??? 😲

that's for hacking things you don't have control over at best, not your own code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.