You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/05/24 14:43:01 UTC

[incubator-nuttx-apps] 02/04: webclient: Add proxy setting in webclient_context

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git

commit 41aee40a2ce36432ad0266f5f35b1a414ecf856c
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Mon May 23 14:01:44 2022 +0900

    webclient: Add proxy setting in webclient_context
---
 include/netutils/webclient.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/netutils/webclient.h b/include/netutils/webclient.h
index e352d44ea..de0efdf91 100644
--- a/include/netutils/webclient.h
+++ b/include/netutils/webclient.h
@@ -316,6 +316,10 @@ struct webclient_context
    *   url              - A pointer to a string containing the full URL.
    *                      (e.g., http://www.nutt.org/index.html, or
    *                       http://192.168.23.1:80/index.html)
+   *   proxy            - A pointer to a string containing the proxy string.
+   *                      (e.g., http://myproxy:1080)
+   *                      NULL means no proxy. This is the default.
+   *                      Only http:// protocol is implemented.
    *   unix_socket_path - If not NULL, the path to an AF_LOCAL socket.
    *   headers          - An array of pointers to the extra headers.
    *   nheaders         - The number of elements in the "headers" array.
@@ -337,6 +341,7 @@ struct webclient_context
 
   FAR const char *method;
   FAR const char *url;
+  FAR const char *proxy;
 #if defined(CONFIG_WEBCLIENT_NET_LOCAL)
   FAR const char *unix_socket_path;
 #endif