my_sports_feeds v0.1.0 MySportsFeeds.Request

Request handling and basic caching for http requests.

Summary

Functions

cached_get: does a get and stores it in the cache. If the URL contains ‘force=true’ then the cache is skipped, but the cache is still populated. You can specify a ttl in seconds for each request

Functions

cache(key, val, ttl_seconds)
cached_get(url, ttl_seconds \\ 60)

cached_get: does a get and stores it in the cache. If the URL contains ‘force=true’ then the cache is skipped, but the cache is still populated. You can specify a ttl in seconds for each request.

get(url)
handle(response)
headers()
parse(response)
raw_get(url)