Update core module "http-client"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Committed
|
High
|
Federico Cavalieri |
Bug Description
Update core module "http-client". Refer to the Zorba 3.0 Module Update Checklist at http://
For this module, we are keeping the old module with the old namespace and API. However, we should still do at least the following changes:
* Ensure the documentation is accurate and up to standards
* Move the module contents out of unnecessary com/zorba-xquery/ subdirectories. The path for the module is currently modules/
As discussed on the merge proposal, we also need to eliminate code redundancy; the easiest (?) way to do this is probably to convert the old module to a wrapper around the new one, with only UDFs and no C++ code.
Related branches
- Chris Hillery: Approve
- Cezar Andrei: Approve
-
Diff: 9158 lines (+5250/-2729)176 files modifiedinclude/zorba/item.h (+15/-0)
include/zorba/util/hexbinary_util.h (+51/-0)
modules/CMakeLists.txt (+1/-0)
modules/com/zorba-xquery/www/modules/CMakeLists.txt (+0/-39)
modules/com/zorba-xquery/www/modules/http-client.xq.src/curl_overwrite.h (+0/-23)
modules/com/zorba-xquery/www/modules/http-client.xq.src/curl_redefines.h (+0/-30)
modules/com/zorba-xquery/www/modules/http-client.xq.src/curl_stream_buffer.cpp (+0/-379)
modules/com/zorba-xquery/www/modules/http-client.xq.src/curl_stream_buffer.h (+0/-193)
modules/com/zorba-xquery/www/modules/http-client.xq.src/curl_wrappers.h (+0/-45)
modules/com/zorba-xquery/www/modules/http-client.xq.src/error_thrower.h (+0/-53)
modules/com/zorba-xquery/www/modules/http-client.xq.src/http_client.cpp (+0/-256)
modules/com/zorba-xquery/www/modules/http-client.xq.src/http_request_handler.cpp (+0/-292)
modules/com/zorba-xquery/www/modules/http-client.xq.src/http_request_handler.h (+0/-113)
modules/com/zorba-xquery/www/modules/http-client.xq.src/http_response_handler.cpp (+0/-232)
modules/com/zorba-xquery/www/modules/http-client.xq.src/http_response_handler.h (+0/-115)
modules/com/zorba-xquery/www/modules/http-client.xq.src/http_response_parser.cpp (+0/-351)
modules/com/zorba-xquery/www/modules/http-client.xq.src/http_response_parser.h (+0/-92)
modules/com/zorba-xquery/www/modules/http-client.xq.src/inform_data_read.cpp (+0/-22)
modules/com/zorba-xquery/www/modules/http-client.xq.src/inform_data_read.h (+0/-27)
modules/com/zorba-xquery/www/modules/http-client.xq.src/request_handler.cpp (+0/-22)
modules/com/zorba-xquery/www/modules/http-client.xq.src/request_handler.h (+0/-60)
modules/com/zorba-xquery/www/modules/http-client.xq.src/request_parser.cpp (+0/-276)
modules/com/zorba-xquery/www/modules/http-client.xq.src/request_parser.h (+0/-46)
modules/http-client/CMakeLists.txt (+60/-0)
modules/http-client/json/http-client.jsd (+215/-0)
modules/http-client/json/http-client.xq (+692/-0)
modules/http-client/json/http-client.xq.src/curl_stream_buffer.cpp (+379/-0)
modules/http-client/json/http-client.xq.src/curl_stream_buffer.h (+193/-0)
modules/http-client/json/http-client.xq.src/error_thrower.h (+66/-0)
modules/http-client/json/http-client.xq.src/http_client.cpp (+255/-0)
modules/http-client/json/http-client.xq.src/http_request_handler.cpp (+469/-0)
modules/http-client/json/http-client.xq.src/http_request_handler.h (+119/-0)
modules/http-client/json/http-client.xq.src/http_response_handler.cpp (+294/-0)
modules/http-client/json/http-client.xq.src/http_response_handler.h (+126/-0)
modules/http-client/json/http-client.xq.src/http_response_parser.cpp (+348/-0)
modules/http-client/json/http-client.xq.src/http_response_parser.h (+93/-0)
modules/http-client/json/http-client.xq.src/inform_data_read.cpp (+22/-0)
modules/http-client/json/http-client.xq.src/inform_data_read.h (+27/-0)
modules/http-client/json/http-client.xq.src/request_parser.cpp (+353/-0)
modules/http-client/json/http-client.xq.src/request_parser.h (+63/-0)
modules/http-client/xml/http-client-error.xq (+1/-1)
modules/http-client/xml/http-client.xq (+578/-55)
schemas/xslt-xquery-serialization.xsd (+1/-1)
src/api/CMakeLists.txt (+1/-0)
src/api/hexbinaryimpl.cpp (+83/-0)
src/api/item.cpp (+12/-0)
src/context/static_context.cpp (+3/-1)
test/rbkt/ExpQueryResults/zorba/http-client/json/delete/delete.xml.res (+3/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/get-binary/get-binary_binary.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/get-binary/get-binary_text.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/get-binary/get-binary_text_query.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/get-binary/get-binary_xml.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/get-binary/get-binary_xml_query.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/get-node/get-node_binary.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/get-node/get-node_text.xml.res (+3/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/get-node/get-node_text_query.xml.res (+3/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/get-node/get-node_xml.xml.res (+5/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/get-node/get-node_xml_query.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/get-text/get-text_binary.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/get-text/get-text_text.xml.res (+3/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/get-text/get-text_text_query.xml.res (+3/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/get-text/get-text_xml.xml.res (+5/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/get-text/get-text_xml_query.xml.res (+5/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/get/get_binary.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/get/get_json.xml.res (+4/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/get/get_text.xml.res (+3/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/get/get_text_query.xml.res (+3/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/get/get_xml.xml.res (+5/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/get/get_xml_query.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/head/head_content-type_binary.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/head/head_content-type_text.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/head/head_content-type_xml.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/head/head_status.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/options/options.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/post/post2_binary.xml.res (+4/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/post/post2_hexbinary.xml.res (+4/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/post/post2_json.xml.res (+4/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/post/post2_string.xml.res (+4/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/post/post3_binary.xml.res (+4/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/post/post3_json.xml.res (+4/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/post/post3_string.xml.res (+4/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/put/put2_binary.xml.res (+4/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/put/put2_hexbinary.xml.res (+4/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/put/put2_json.xml.res (+4/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/put/put2_string.xml.res (+4/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/put/put3_binary.xml.res (+4/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/put/put3_json.xml.res (+4/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/put/put3_string.xml.res (+4/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/send-request/http1-redirect.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/send-request/http1-useragent.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/send-request/http2-read-svg.xml.res (+11/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/send-request/http3-multipart.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/send-request/http3-post.xml.res (+12/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/send-request/http_error_hc002.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/send-request/http_error_hc004.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/send-request/http_error_hc005.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/send-request/send-request_get_binary.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/http-client/json/send-request/send-request_href.xml.res (+5/-0)
test/rbkt/ExpQueryResults/zorba/http-client/xml/get/get_json.xml.res (+4/-0)
test/rbkt/ExpQueryResults/zorba/http-client/xml/post/post3_binary_element.xml.res (+1/-1)
test/rbkt/ExpQueryResults/zorba/http-client/xml/put/put3_binary_element.xml.res (+1/-1)
test/rbkt/Queries/CMakeLists.txt (+0/-2)
test/rbkt/Queries/zorba/http-client/json/delete/delete.xq (+7/-0)
test/rbkt/Queries/zorba/http-client/json/delete/delete_error_http.spec (+1/-0)
test/rbkt/Queries/zorba/http-client/json/delete/delete_error_http.xq (+6/-0)
test/rbkt/Queries/zorba/http-client/json/get-binary/get-binary_binary.xq (+5/-0)
test/rbkt/Queries/zorba/http-client/json/get-binary/get-binary_error_http.spec (+1/-0)
test/rbkt/Queries/zorba/http-client/json/get-binary/get-binary_error_http.xq (+5/-0)
test/rbkt/Queries/zorba/http-client/json/get-binary/get-binary_text.xq (+5/-0)
test/rbkt/Queries/zorba/http-client/json/get-binary/get-binary_text_query.xq (+5/-0)
test/rbkt/Queries/zorba/http-client/json/get-binary/get-binary_xml.xq (+5/-0)
test/rbkt/Queries/zorba/http-client/json/get-binary/get-binary_xml_query.xq (+5/-0)
test/rbkt/Queries/zorba/http-client/json/get-node/get-node_error_http.spec (+1/-0)
test/rbkt/Queries/zorba/http-client/json/get-node/get-node_error_http.xq (+6/-0)
test/rbkt/Queries/zorba/http-client/json/get-node/get-node_xml.xq (+3/-0)
test/rbkt/Queries/zorba/http-client/json/get-node/get-node_xml_query.xq (+4/-0)
test/rbkt/Queries/zorba/http-client/json/get-text/get-text_binary.xq (+4/-0)
test/rbkt/Queries/zorba/http-client/json/get-text/get-text_error_http.spec (+1/-0)
test/rbkt/Queries/zorba/http-client/json/get-text/get-text_error_http.xq (+5/-0)
test/rbkt/Queries/zorba/http-client/json/get-text/get-text_text.xq (+5/-0)
test/rbkt/Queries/zorba/http-client/json/get-text/get-text_text_query.xq (+5/-0)
test/rbkt/Queries/zorba/http-client/json/get-text/get-text_xml.xq (+5/-0)
test/rbkt/Queries/zorba/http-client/json/get-text/get-text_xml_query.xq (+5/-0)
test/rbkt/Queries/zorba/http-client/json/get/get_binary.xq (+5/-0)
test/rbkt/Queries/zorba/http-client/json/get/get_error_http.spec (+1/-0)
test/rbkt/Queries/zorba/http-client/json/get/get_error_http.xq (+5/-0)
test/rbkt/Queries/zorba/http-client/json/get/get_json.xq (+3/-0)
test/rbkt/Queries/zorba/http-client/json/get/get_text.xq (+5/-0)
test/rbkt/Queries/zorba/http-client/json/get/get_text_query.xq (+5/-0)
test/rbkt/Queries/zorba/http-client/json/get/get_xml.xq (+4/-0)
test/rbkt/Queries/zorba/http-client/json/get/get_xml_query.xq (+3/-0)
test/rbkt/Queries/zorba/http-client/json/head/head_content-type_binary.xq (+6/-0)
test/rbkt/Queries/zorba/http-client/json/head/head_content-type_text.xq (+6/-0)
test/rbkt/Queries/zorba/http-client/json/head/head_content-type_xml.xq (+6/-0)
test/rbkt/Queries/zorba/http-client/json/head/head_error_http.spec (+1/-0)
test/rbkt/Queries/zorba/http-client/json/head/head_error_http.xq (+9/-0)
test/rbkt/Queries/zorba/http-client/json/head/head_status.xq (+6/-0)
test/rbkt/Queries/zorba/http-client/json/options/options.xq (+3/-0)
test/rbkt/Queries/zorba/http-client/json/options/options_error_http.spec (+1/-0)
test/rbkt/Queries/zorba/http-client/json/options/options_error_http.xq (+3/-0)
test/rbkt/Queries/zorba/http-client/json/post/post2_binary.xq (+10/-0)
test/rbkt/Queries/zorba/http-client/json/post/post2_error_http.spec (+1/-0)
test/rbkt/Queries/zorba/http-client/json/post/post2_error_http.xq (+8/-0)
test/rbkt/Queries/zorba/http-client/json/post/post2_hexbinary.xq (+11/-0)
test/rbkt/Queries/zorba/http-client/json/post/post2_json.xq (+6/-0)
test/rbkt/Queries/zorba/http-client/json/post/post2_string.xq (+6/-0)
test/rbkt/Queries/zorba/http-client/json/post/post3_binary.xq (+9/-0)
test/rbkt/Queries/zorba/http-client/json/post/post3_encoding_error.spec (+1/-0)
test/rbkt/Queries/zorba/http-client/json/post/post3_encoding_error.xq (+7/-0)
test/rbkt/Queries/zorba/http-client/json/post/post3_error_http.spec (+1/-0)
test/rbkt/Queries/zorba/http-client/json/post/post3_error_http.xq (+9/-0)
test/rbkt/Queries/zorba/http-client/json/post/post3_json.xq (+6/-0)
test/rbkt/Queries/zorba/http-client/json/post/post3_string.xq (+6/-0)
test/rbkt/Queries/zorba/http-client/json/put/put2_binary.xq (+11/-0)
test/rbkt/Queries/zorba/http-client/json/put/put2_error_http.spec (+1/-0)
test/rbkt/Queries/zorba/http-client/json/put/put2_error_http.xq (+8/-0)
test/rbkt/Queries/zorba/http-client/json/put/put2_hexbinary.xq (+10/-0)
test/rbkt/Queries/zorba/http-client/json/put/put2_json.xq (+6/-0)
test/rbkt/Queries/zorba/http-client/json/put/put2_string.xq (+8/-0)
test/rbkt/Queries/zorba/http-client/json/put/put3_binary.xq (+9/-0)
test/rbkt/Queries/zorba/http-client/json/put/put3_error_http.spec (+1/-0)
test/rbkt/Queries/zorba/http-client/json/put/put3_error_http.xq (+9/-0)
test/rbkt/Queries/zorba/http-client/json/put/put3_json.xq (+6/-0)
test/rbkt/Queries/zorba/http-client/json/put/put3_string.xq (+7/-0)
test/rbkt/Queries/zorba/http-client/json/send-request/http1-redirect.xq (+32/-0)
test/rbkt/Queries/zorba/http-client/json/send-request/http1-useragent.xq (+18/-0)
test/rbkt/Queries/zorba/http-client/json/send-request/http2-read-svg.xq (+20/-0)
test/rbkt/Queries/zorba/http-client/json/send-request/http3-multipart.xq (+52/-0)
test/rbkt/Queries/zorba/http-client/json/send-request/http3-post.xq (+19/-0)
test/rbkt/Queries/zorba/http-client/json/send-request/http4-post-redirect.spec (+1/-0)
test/rbkt/Queries/zorba/http-client/json/send-request/http4-post-redirect.xq (+13/-0)
test/rbkt/Queries/zorba/http-client/json/send-request/http_error_hc005.xq (+65/-0)
test/rbkt/Queries/zorba/http-client/json/send-request/send-request_get_binary.xq (+22/-0)
test/rbkt/Queries/zorba/http-client/json/send-request/send-request_href.xq (+10/-0)
test/rbkt/Queries/zorba/http-client/xml/get/get_json.xq (+3/-0)
test/rbkt/Queries/zorba/http-client/xml/send-request/http3-post.xq (+0/-1)
Changed in zorba: | |
assignee: | nobody → Matthias Brantner (matthias-brantner) |
importance: | Undecided → High |
milestone: | none → 3.0 |
status: | New → Confirmed |
description: | updated |
tags: | added: module-cleanup |
summary: |
- This is my summary + Update core module "http-client" |
Changed in zorba: | |
assignee: | Matthias Brantner (matthias-brantner) → Federico Cavalieri (fcavalieri) |
Changed in zorba: | |
status: | Confirmed → In Progress |
Changed in zorba: | |
status: | In Progress → Fix Committed |
This applies to the old http-module, correct?
Thanks
Federico
On Wed, Jul 10, 2013 at 8:54 AM, Chris Hillery
<email address hidden>wrote:
> ** Changed in: zorba /bugs.launchpad .net/bugs/ 1189791 my.zorba- com/dokuwiki/ doku.php? id=module_ update . zorba.io/ modules/ http-client" namespace, ensuring the com/zorba- xquery/ www/modules/ http- error.xq module /bugs.launchpad .net/zorba/ +bug/1189791/ +subscriptions
> Status: Confirmed => In Progress
>
> ** Branch linked: lp:~zorba-coders/zorba/json-http-module
>
> --
> You received this bug notification because you are a bug assignee.
> https:/
>
> Title:
> Update core module "http-client"
>
> Status in Zorba - NoSQL Query Processor:
> In Progress
>
> Bug description:
> Update core module "http-client". Refer to the Zorba 3.0 Module Update
> Checklist at http://
> xquery.
>
> This minimally means renaming the module to the
> "http://
> documentation is accurate and up to standards, and moving the module
> contents out of unnecessary com/zorba-xquery/ subdirectories. The path
> for the module is currently modules/
> client.xq .
>
> Additional tasks for this module:
> * Convert to fully JSONiq module
> * Also update implementation of non-core EXPath http-client module
> accordingly
> * Also remove http-client-
>
> To manage notifications about this bug go to:
> https:/
>