Giter VIP home page Giter VIP logo

egohttprequest's People

Contributors

devindoty avatar shnhrrsn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

egohttprequest's Issues

Make request instance to select CachePolicy.

First of all I wanna thank you for sharing this great request library-
In your EGOHTTPRequest method called "- (NSURLRequest_)buildURLRequest"
There are code like above that declare CachePolicy.
NSMutableURLRequest
request = [[NSMutableURLRequest alloc] initWithURL:self.url
cachePolicy:NSURLRequestReturnCacheDataElseLoad
timeoutInterval:self.timeoutInterval];
Some times I need to specify cache policy on request when User want to update manually and blah blah blah.
Would you like to make a fix on that?

performSelector:withObject:afterDelay: doesn't work after an asynchronous request is finished

Hi guys,

Here's a little bug I found, which I think is the cause of this other issue on your EGOImageLoading library: http://github.com/enormego/EGOImageLoading/issues/4

Create a project on Xcode and add a button on Interface Builder. Link the Touch Up Inside event of the button to the "buttonClick" method below. Now paste this code in your controller:

-(IBAction) buttonClick {
    EGOHTTPRequest * request = [[EGOHTTPRequest alloc] initWithURL:[NSURL URLWithString:@"http://www.google.com"] delegate:self];
    [request startAsynchronous];
    [request release];
}

- (void) doWhatever {
    NSLog(@"OK. I did something.");
}

-(void) requestDidFinish:(EGOHTTPRequest *)aRequest {
    [self performSelector:@selector(doWhatever) withObject:nil afterDelay:1];
}

Now tap the button. This will initiate an asynchronous request to Google. After the request is finished, the "requestDidFinish:" method gets called. Here we call "performSelector:withObject:afterDelay:", which should call the "doWhatever" method one second later.

But the "doWhatever" method is never called!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.