summaryrefslogtreecommitdiff
path: root/content/fetchers/resource.c
Commit message (Collapse)AuthorAgeFilesLines
* fetchers: Rework the about, data, file, and resource fetcher poll loopDaniel Silverstone2020-02-241-31/+12
| | | | | | | This simplifies the poll loops a little more and makes me less worried that some other corner case will bite us in the future. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* About fetches resources: Drop maps resource.Michael Drake2020-02-241-1/+0
| | | | It had bitrotted.
* fetchers: Apply cleaner ring handling mechanic to other fetchersDaniel Silverstone2020-02-241-1/+16
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Resource fetcher: Optimise HTTP header generation.Michael Drake2019-11-101-6/+8
|
* Resource fetcher: Add Cache-Control header with max-age of a year.Michael Drake2019-11-101-0/+5
| | | | | Resource URLs can't change, we want to assume they're fresh for as long as we can.
* Resource fetcher: Fix ETag handling.Michael Drake2019-11-091-10/+19
| | | | | | | | * Changed ETag storage to be time_t, rather than int. * Changed `If-None-Match` value parsing to use proper time_t parsing, rather than `atoi`. We emit FETCH_NOTMODIFIED if the resource hasn't changed.
* Use coccinelle to change logging macro calls in c filesVincent Sanders2017-09-061-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | for F in $(git ls-files '*.c');do spatch --sp-file foo.cocci --in-place ${F};done @@ expression E; @@ -LOG(E); +NSLOG(netsurf, INFO, E); @@ expression E, E1; @@ -LOG(E, E1); +NSLOG(netsurf, INFO, E, E1); @@ expression E, E1, E2; @@ -LOG(E, E1, E2); +NSLOG(netsurf, INFO, E, E1, E2); @@ expression E, E1, E2, E3; @@ -LOG(E, E1, E2, E3); +NSLOG(netsurf, INFO, E, E1, E2, E3); @@ expression E, E1, E2, E3, E4; @@ -LOG(E, E1, E2, E3, E4); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4); @@ expression E, E1, E2, E3, E4, E5; @@ -LOG(E, E1, E2, E3, E4, E5); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5); @@ expression E, E1, E2, E3, E4, E5, E6; @@ -LOG(E, E1, E2, E3, E4, E5, E6); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6); @@ expression E, E1, E2, E3, E4, E5, E6, E7; @@ -LOG(E, E1, E2, E3, E4, E5, E6, E7); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6, E7);
* create netsurf inttypes header to have portable integer formatting macrosVincent Sanders2017-01-211-0/+1
|
* move fetch header into public APIVincent Sanders2016-05-301-1/+1
|
* need strings.h for strncasecmp on freebsdVincent Sanders2016-04-211-0/+1
|
* Split utils header into string functions and everything elseVincent Sanders2016-04-211-15/+2
| | | | | split out the string handling API from the rest of the utils header and fix up all the fallout.
* Reduce unecessary use of directory entry headersVincent Sanders2016-04-191-2/+1
| | | | | | | The config header was causing many source files to unecessarily include the dirent headers causing extra dependancies. This has been fixed by providing a utility dirent header that provides a common API across all platforms while removing the unecessary dirent header usage.
* Fix size_t printf formattingVincent Sanders2016-03-171-8/+12
| | | | | | | The printf formatting for size_t is set in c99 as %zu but in windows it is %Iu this is solved by adding and inttypes style PRI macro for size_t This also uses this macro everywhere size_t is formatted.
* Allow the resource scheme to provide data directly.Vincent Sanders2015-06-171-48/+151
| | | | | | This allows front ends to provide resources from compiled in data instead of requiring the resources to be available on disc and forcing a redirect.
* Add trivial maps facilitator at about:mapsMichael Drake2014-10-221-0/+1
| | | | | | | | This is a simple HTML front end for the Google Static Maps API, since we don't yet have enough JS support for the full Google Maps. See: https://developers.google.com/maps/documentation/staticmaps/
* Update the core to use the split operations table headersVincent Sanders2014-10-161-1/+2
| | | | Second in the series to decouple the core API usage from the frontends.
* clean up the fetcher factory and improve its APIVincent Sanders2014-06-191-15/+20
|
* rework path to url mapping functions to convert from and to nsurlVincent Sanders2014-05-261-1/+0
|
* Completely re-write web search provider handlingVincent Sanders2014-05-251-0/+1
|
* remove unecessary utils/url.h includesVincent Sanders2014-05-091-1/+0
|
* clean up desktop/gui.h include usageVincent Sanders2014-01-291-1/+0
|
* Use corestrings for "about", "data", and "resource".Michael Drake2014-01-241-7/+2
|
* create table for fetcher operations and move all operations into itVincent Sanders2014-01-231-1/+1
|
* split browser gui operations upVincent Sanders2014-01-151-1/+1
|
* move remaining gui operations to tableVincent Sanders2014-01-141-1/+2
|
* Enable access to hotlist icons through resource URLs.Michael Drake2013-11-201-0/+2
|
* Visual indication of hotlist's folder for unsorted entries, with special icon.Michael Drake2013-11-081-0/+1
|
* Add arrow image to resource icons.Michael Drake2013-08-121-0/+1
|
* Add icons to resource space.Michael Drake2013-05-311-1/+4
|
* move options includeVincent Sanders2013-05-281-1/+1
|
* Downgrade TLS version support if it turns out the server can't cope with ↵John-Mark Bell2013-01-041-0/+1
| | | | TLSv1.1.
* Add about:welcome handler and enable resource:welcome.html.Michael Drake2012-07-211-0/+1
|
* Enable User CSS file.Michael Drake2012-03-061-0/+1
| | | | svn path=/trunk/netsurf/; revision=13507
* return;John Mark Bell2011-11-271-0/+6
| | | | | | Fix bug #3442642: allow scheme-specific fetchers to have a say in whether an URL can be fetched. svn path=/trunk/netsurf/; revision=13182
* Clean up fetch callback API. Inject some long-needed type safety.John Mark Bell2011-11-081-13/+20
| | | | svn path=/trunk/netsurf/; revision=13137
* make resource fetcher cope with missing resources gracefullyVincent Sanders2011-10-071-11/+9
| | | | svn path=/trunk/netsurf/; revision=12994
* use resource:favicon.ico instead of resource:favicon.pngVincent Sanders2011-10-071-1/+1
| | | | svn path=/trunk/netsurf/; revision=12982
* fix favicon default selection for non http(s) urlsVincent Sanders2011-10-071-0/+1
| | | | svn path=/trunk/netsurf/; revision=12981
* Build resource: map at start timeJohn Mark Bell2011-10-051-18/+82
| | | | | | Remove stylesheet url globals -- the core will always use resource:{default,quirks,adblock}.css as appropriate svn path=/trunk/netsurf/; revision=12949
* Port more internals to nsurl. Front ends may need updating.Michael Drake2011-10-031-0/+1
| | | | svn path=/trunk/netsurf/; revision=12926
* Convert fetchers to nsurl.Michael Drake2011-09-291-3/+3
| | | | svn path=/trunk/netsurf/; revision=12910
* Fetchers register with an lwc_string, rather than a string.Michael Drake2011-09-261-4/+14
| | | | svn path=/trunk/netsurf/; revision=12891
* gui_find_resource --> gui_get_resource_url.Michael Drake2011-03-171-1/+1
| | | | svn path=/trunk/netsurf/; revision=12089
* Fix backend fetcher poll loopsJohn Mark Bell2011-02-231-4/+5
| | | | svn path=/trunk/netsurf/; revision=11775
* add resource handlingVincent Sanders2011-02-231-0/+277
move gtk and framebuffer to use generic resource handling svn path=/trunk/netsurf/; revision=11772