summaryrefslogtreecommitdiff
path: root/libs/luci-lib-httpclient
Commit message (Collapse)AuthorAgeFilesLines
* luci-base: move some generic classes into a separate luci-base-libs packageSven Roederer2020-07-191-1/+1
| | | | | | | | | | The new package luci-base-libs provides the modules that not strictly relate to the web-interface of luci. By separating these libs they can be used by other packages without having to install the web-components. This change was inspired by providing a shell-only interface for 4MB-flash devices, by keeping as much code common with a full install. Signed-off-by: Sven Roederer <freifunk@it-solutions.geroedel.de>
* luci-lib-httpclient: accept scoped IPv6 addressesJo-Philipp Wich2019-12-091-2/+2
| | | | | Ref: https://github.com/openwrt/luci/issues/3380 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-lib-httpclient: prevent nil access with invalid IP address literalsJo-Philipp Wich2018-12-111-4/+4
| | | | | Fixes: a54baf7be ("luci-lib-httpclient: revamp URL handling") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-lib-httpclient: revamp URL handlingJo-Philipp Wich2018-12-111-72/+123
| | | | | | | | | | | - Introduce a parse_url() helper which properly deals with literal IPv4 and IPv6 host parts and returns the decomposed uri string as table - Properly format IPv6 literals in autogenerated Host headers - Omit default port numbers in Host headers and calculated redirect URLs. Supersedes PR #2337. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* libs: move http.protocol.{date,mime,conditionals} to luci-lib-httpprotoutilsJo-Philipp Wich2018-04-182-2/+2
| | | | | | | Also adjust the dependencies of components depending on these classes and flatten the namespace from luci.http.protocol.* to luci.http.* Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-base: fold luci.http.protocol into luci.httpJo-Philipp Wich2018-04-181-1/+1
| | | | | | | | | | With only the decoder routines remaining in luci.http.protocol, it makes no sense to keep the low level protocol class around, so fold the remaining code into the central luci.http class. Also adjust the few direct users of luci.http.protocol accordingly. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* add params support in optionsYuzo2015-01-221-1/+5
|
* send Cookie in a single header line, follow browser behaviorYuzo2015-01-221-14/+20
|
* add sock::readall() to ensure the response body is completeYuzo2015-01-221-1/+1
|
* Globally reduce copyright headersJo-Philipp Wich2015-01-162-26/+4
| | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
* Rework LuCI build systemJo-Philipp Wich2015-01-083-0/+678
* Rename subdirectories to their repective OpenWrt package names * Make each LuCI module its own standalone package * Deploy a shared luci.mk which is used by each module Makefile Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>