summaryrefslogtreecommitdiff
path: root/content/fetchers/data.c
Commit message (Collapse)AuthorAgeFilesLines
* fetchers: Rework the about, data, file, and resource fetcher poll loopDaniel Silverstone2020-02-241-31/+13
| | | | | | | 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>
* fetchers: Apply cleaner ring handling mechanic to other fetchersDaniel Silverstone2020-02-241-1/+16
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Data fetcher: Include stdarg.h header.Michael Drake2019-11-121-0/+1
|
* Data fetcher: Squash BSD warning.Michael Drake2019-11-111-4/+3
|
* Data fetcher: Add Cache-Control header with max-age of a year.Michael Drake2019-11-101-0/+6
| | | | | Data URLs can't change, we want to assume they're fresh for as long as we can.
* Data fetcher: Split header emitting out into helper.Michael Drake2019-11-101-15/+26
|
* Data fetcher: Move fetch_data_send_callback towards top of file.Michael Drake2019-11-101-8/+8
|
* data url handler: drop logging to DEEPDEBUG.Michael Drake2019-05-051-1/+1
|
* data url handler: Keep nsurl to avoid copy.Michael Drake2019-05-051-15/+8
|
* data url handling: avoid needless allocation / copy.Michael Drake2019-05-051-11/+2
|
* data URL handler: constify some string pointers.Michael Drake2019-05-051-2/+2
|
* Use coccinelle to change logging macro calls in c filesVincent Sanders2017-09-061-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
|
* fix unecessary base64 header includeVincent Sanders2016-11-191-1/+1
|
* Remove internal BASE64 in favour of nsutils' oneDaniel Silverstone2016-11-191-3/+6
|
* URL unescape: return the new length to the caller.Michael Drake2016-07-241-3/+2
| | | | | | | | The avoids situations were we threw away the length, only for the caller to have to strlen the returned string. Note, there seems to be a case of the amiga front end writing beyond end of allocation. Added a TODO for now.
* Data URL handling: Use url_unescape rather than curl.Michael Drake2016-07-241-13/+10
|
* Whitespace: Convert spaces to tab for indent.Michael Drake2016-07-241-3/+3
|
* Split utils header into string functions and everything elseVincent Sanders2016-04-211-15/+11
| | | | | split out the string handling API from the rest of the utils header and fix up all the fallout.
* Fix size_t printf formattingVincent Sanders2016-03-171-3/+4
| | | | | | | 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.
* Change LOG() macro to be varadicVincent Sanders2015-05-281-6/+5
| | | | | | | | | | | | This changes the LOG macro to be varadic removing the need for all callsites to have double bracketing and allows for future improvement on how we use the logging macros. The callsites were changed with coccinelle and the changes checked by hand. Compile tested for several frontends but not all. A formatting annotation has also been added which allows the compiler to check the parameters and types passed to the logging.
* Improve data scheme fetcher allocationVincent Sanders2014-11-171-10/+8
| | | | | | The data scheme fetcher was over allocating the space for decoded base64 encoded urls and not using the base64 API that allocated the correct size storage.
* split version info into its own header and remove unnecessary nesurf.h includesVincent Sanders2014-10-131-1/+0
| | | | | | | | | The netsurf.h header should *only* contain the registration, core initialisation and finalisation methods. Version information is best placed in its own header. Also remove any unneeded inclusion of this header limiting it to solely the places the relevant API is required.
* clean up the fetcher factory and improve its APIVincent Sanders2014-06-191-11/+14
|
* remove unecessary utils/url.h includesVincent Sanders2014-05-091-1/+0
|
* Use corestrings for "about", "data", and "resource".Michael Drake2014-01-241-6/+2
|
* 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-1/+1
| | | | TLSv1.1.
* fix windows build format specifiersVincent Sanders2012-08-121-1/+1
| | | | add install target for windows - creates installer rather than actually installing
* limit url debug output to 140 charactersVincent Sanders2012-07-031-1/+1
|
* 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-30/+41
| | | | svn path=/trunk/netsurf/; revision=13137
* Use malloc, memcpy instead of strdup since we have the length.Michael Drake2011-10-081-2/+3
| | | | svn path=/trunk/netsurf/; revision=13006
* Convert fetchers to nsurl.Michael Drake2011-09-291-2/+3
| | | | svn path=/trunk/netsurf/; revision=12910
* Fetchers register with an lwc_string, rather than a string.Michael Drake2011-09-261-6/+15
| | | | svn path=/trunk/netsurf/; revision=12891
* Fix backend fetcher poll loopsJohn Mark Bell2011-02-231-10/+17
| | | | svn path=/trunk/netsurf/; revision=11775
* add about: fetcher Vincent Sanders2011-02-151-0/+310
rename fetchers to be more sensible svn path=/trunk/netsurf/; revision=11692