Commit Graph
21 Commits
Author SHA1 Message Date
Andrew Lindesay f943fa465c JSON Parser : Documentation migration
This commit migrates the JSON overview documentation that
was recently added from Markdown to Doxygen.
2017-05-26 21:05:14 +12:00
Andrew Lindesay 55f5f25940 JSON Parser : code style corrections 2017-05-16 00:21:15 +12:00
Andrew Lindesay 0c28e8e5a0 Implementation of JSON Streaming Parser
Fix warnings related to x86_64 tests' compilation.
2017-05-14 10:44:03 +12:00
Andrew Lindesay e6fa1be5fd Implementation of JSON Streaming Parser
Addition of missing files from previous commit
2017-05-13 19:35:51 +12:00
Andrew Lindesay 1f6b57a5d2 Implementation of JSON Streaming Parser
This change will introduce a streaming parser capability to Haiku.  The
existing functionality of writing the JSON data to a BMessage in-memory
model is retained.  The new parser implements a SAX-style listener based
interface where the listener accepts parse events.  Unit tests have been
supplied for the JSON parser as well.
2017-05-13 18:50:39 +12:00
Andrew Lindesay 7407e36a10 HaikuDepot; date formatting and location header handling
The existing HTTP header date format handling code is employed
rather than using specific logic for HD.  Also the "Location"
header handling is changed to work better for non-absolute
URLs arriving in this header value on a redirect.  Both
suggestions from Adrien.
2017-01-31 23:06:20 +13:00
Andrew Lindesay 1290dd9132 HaikuDepot: changes from code review from Jessica 2017-01-31 21:18:39 +13:00
Andrew Lindesay 0c1bbfe508 HaikuDepot: suggested code improvements from Adrien 2017-01-31 20:45:36 +13:00
Andrew Lindesay 19c15fec85 HaikuDepot: Improve icon download handling performance
Previously each icon would launch an independent HTTP request to
pull down the HVIF icon data.  This change means that the data
will be pulled down in bulk across all packages as a .tgz and
will then be kept in a cache locally.  The client-server logic
will use standard "If-Modified-Since" headers to check for
updates each time the HaikuDepot desktop application starts up.
This arrangement will bring down the HVIF as well as bitmap
icons and use the best representation it can.

Additionally, it is possible from a command-line option to log
HTTP traffic verbosely and it is also possible to use an "-h"
flag to display help on command-line arguments.

The code-structure around this change also anticipates some
future extensions to handle other client-server improvements.

Fixes #11804
2017-01-27 21:14:13 +13:00
Andrew Lindesay b6c8f81bf8 build: add support for build paths for 'homebrew' package system on macOS 2017-01-22 20:50:02 +13:00
Andrew Lindesay cf65729463 Url: implement same URL parsing logic in C/C++ code
- Remove uses of group matching regular expression, not available on all
  build hosts,
- Parsing is faster than our old regexp engine.

Signed-off-by: Adrien Destugues <[email protected]>

- Fixes #13002
- Fixed some indentation (tabs vs space), please configure your editor
  properly.
2016-10-31 09:14:44 +01:00
Andrew Lindesay 000b15f2c3 HaikuDepot: Adjust URLs for use with HDS
HDS paths are now prefixed with "__".  This change
makes the corresponding change to the HaikuDepot
desktop application

Fixes #13030.
2016-10-26 23:39:34 +13:00
Andrew Lindesay be29847471 HaikuDepot: code clean-up from #12793 2016-10-21 21:52:13 +13:00
Andrew Lindesay ebb1a01c48 HaikuDepot: Handling for communications with application server over multiple repositories
This change allows for the HaikuDepot desktop application to query the server application
over HTTP for data regarding packages across the various repositories that the have been
configured on the desktop environment.  Previously it was 'hard-coded' to only
communicate about the HaikuPorts repository.
2016-10-20 23:03:10 +13:00
Andrew Lindesay fa2dd9c45f BPackageInfo::Parser: Validate URL strings.
Fixes #12710.

Signed-off-by: Augustin Cavalier <[email protected]>
I fixed the modifications to the Jamfiles in src/bin, they were all wrong
in the patch.
2016-06-18 18:40:07 -04:00
Andrew Lindesay b8d10c6dc6 HaikuDepot: Enhancements to the User-Agent header to include the version.
Signed-off-by: Augustin Cavalier <[email protected]>
Fixes #12262.
2015-08-07 21:17:14 -04:00
Andrew Lindesay 3860139319 hvif2png: Fix build on Mac OS X.
* Add support for macports lib and headers dirs.
 * Link libs change for Mac OS X for tool build.

Signed-off-by: Augustin Cavalier <[email protected]>
2015-07-25 10:23:24 -04:00
Andrew Lindesay 93407f0c87 HaikuDepot: desktop app can now have server url specified
* Enables us to test to other HD servers

Completes Task #12216
2015-07-19 08:46:26 -05:00
Andrew Lindesay 874bb4ede9 hvif2png: Input file reading fix, file magic check
* Fix an infinite loop on reading a larger file.
* Check hvif magic number

Ticket #12207.

Signed-off-by: Ingo Weinhold <[email protected]>
2015-07-19 11:42:18 +02:00
Andrew Lindesay f712bf3e60 Add build tool to render hvif icon files as png
Signed-off-by: Ingo Weinhold <[email protected]>
2015-07-18 08:06:47 +02:00
Andrew Lindesay b4c773d32e modified layout intro docsZ
Signed-off-by: John Scipione <[email protected]>
2014-06-02 20:13:16 -04:00