From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpng1.m.smailru.net (smtpng1.m.smailru.net [94.100.181.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 6EF5E46970E for ; Thu, 9 Jan 2020 11:04:33 +0300 (MSK) From: olegrok@tarantool.org Date: Thu, 9 Jan 2020 11:04:12 +0300 Message-Id: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 0/2] Borrow encoding/decoding functions from cURL List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org, alexander.turenko@tarantool.org Cc: Oleg Babin From: Oleg Babin 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