[Tarantool-patches] [PATCH 0/2] Borrow encoding/decoding functions from cURL

olegrok at tarantool.org olegrok at tarantool.org
Thu Jan 9 11:04:12 MSK 2020


From: Oleg Babin <babinoleg at mail.ru>

This patchest introduces four new functions for
http.client module

First patch properly closes #3682 and introduces
url_encode and url_decode functions - simple
wrappers via libcurl functions

However it could be enough for our users that
will use it for query arguments formatting and parsing

The second one introduces more high-level functions -
format_query and parse_query

Issue: https://github.com/tarantool/tarantool/issues/3682
Branch: https://github.com/tarantool/tarantool/tree/olegrok/3682-url-escape 

Oleg Babin (2):
  httpc: introduce url_escape/url_unescape functions
  httpc: introduce format_query and parse_query functions

 src/httpc.c                       | 19 ++++++++
 src/httpc.h                       | 36 +++++++++++++++
 src/lua/httpc.c                   | 45 +++++++++++++++++++
 src/lua/httpc.lua                 | 75 +++++++++++++++++++++++++++++--
 test/app-tap/http_client.test.lua | 58 +++++++++++++++++++++++-
 5 files changed, 229 insertions(+), 4 deletions(-)

-- 
2.23.0



More information about the Tarantool-patches mailing list