summaryrefslogtreecommitdiff
path: root/lib/rbot/httputil.rb
AgeCommit message (Collapse)Author
2020-04-14refactor: httputil no longer core module see #38Matthias Hecker
This is intended to make testing/mocking of the http client easier.
2007-02-06Create an utils subdir in core, which will store all utility files that can ↵Giuseppe Bilotta
be reloaded without quitting the bot, and move httputil and utils to it
2006-10-25Rework cached? for get_cached replies to prevent warnings about redefined ↵Giuseppe Bilotta
methods
2006-10-25Strings returned by get_cached now have a cached? method which returns true ↵Giuseppe Bilotta
or false depending on whether the result was taken from the cache or not.
2006-10-24Don't change the default headers setting the headers for the HEAD request ↵Giuseppe Bilotta
when checking expiration
2006-10-24Initial implementation of proper caching based on last-modified and etag ↵Giuseppe Bilotta
HTTP headers
2006-10-24Support basic_auth in httputil get and head methodsGiuseppe Bilotta
2006-10-19Fix redirection in httputil.get when location is only a partial/realtive urlGiuseppe Bilotta
2006-10-13Fine tune url pluginGiuseppe Bilotta
2006-10-13Minor tweaks to httputil: make last response available in @last_resp for get ↵Giuseppe Bilotta
and head methods when they return nil
2006-08-04Fix stupid bug introduced with the new debugging messages. switch to ↵Giuseppe Bilotta
kind_of? instead of .class<=
2006-07-24Additiona work on the caching we really have to look into some serious http ↵Giuseppe Bilotta
library with automatic cache management
2006-07-24httputil get/head/get_cached now also accept strings and not just URIsGiuseppe Bilotta
2006-07-23Fix yielding in {{{httputil.get}}} and {{{httputil.head}}} and usage of [] ↵Giuseppe Bilotta
instead of () in remove_stale_cache
2006-07-23Add debug backtrace info for HttpUtil failuresGiuseppe Bilotta
2006-07-23Add get_cached method to httputil. No need to download the same page over ↵Giuseppe Bilotta
and over again. It can be safely used with RSS feeds that return the last-modified attribute because it checks that, if possible
2006-07-23{{{httputil.rb}}} now handles redirects: a step towards #105, can be used ↵Giuseppe Bilotta
also in other net-oriented plugins
2006-07-20All lib/rbot files are now upgraded to the new logging featureGiuseppe Bilotta
2006-05-30fix httputil.rb when using proxy (Ticket #80)Alexander Beisig
2006-01-12fix the fixTom Gilbert
2006-01-12properly support sslTom Gilbert
2005-08-04Thu Aug 04 23:03:30 BST 2005 Tom Gilbert <tom@linuxbrit.co.uk>Tom Gilbert
* Improved ircd recognition of rfc2812.rb * de-string'd, de-cap'd rfc2812.rb, looks less shouty now * moved the Q auth stuff (for quakenet) into a new qauth plugin (untested!) * finish fixing the httputil
2005-08-02 * Fixed the new http.proxy* settings, they work!Tom Gilbert
* Fixed a bug with auth-checking for the config module * misc tweaks
2005-07-31Sun Jul 31 02:20:08 BST 2005 Tom Gilbert <tom@linuxbrit.co.uk>Tom Gilbert
* Updated docgen to generate rdoc again with the new repo structure * added new restart command to the core bot, quits irc and reexecs the bot, to pick up new code/libraries etc.
2005-07-30Sat Jul 30 22:33:36 BST 2005 Tom Gilbert <tom@linuxbrit.co.uk>Tom Gilbert
* Config items are now objects, various types are available. * The config wizard will now use registered config items if :wizard is set to true for those items. It will ask questions in the order they were registered. * The config module now works for doing runtime configuration. * misc refactoring
2005-07-30Sat Jul 30 01:19:32 BST 2005 Tom Gilbert <tom@linuxbrit.co.uk>Tom Gilbert
* config module for configuring the running bot via IRC * BotConfig.register method for various modules and any plugin to register bot configuration which the new config module will expose for them. * various other tweaks as I continue to refactor..
2005-07-29Fri Jul 29 13:07:56 BST 2005 Tom Gilbert <tom@linuxbrit.co.uk>Tom Gilbert
* Moved some stuff out of util.rb into the plugins that actually need them. Those methods didn't belong in util as they were plugin-specific. * moved a few more plugins to use map() where appropriate * made the url plugin only store unique urls
2005-07-27move rbot into lib - still rearranging for packaging/installationTom Gilbert