mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-05 13:17:52 +00:00
webclient: Add a parameter to specifiy protocol version
This commit is contained in:
parent
81b9be5d2e
commit
3759da3d00
2 changed files with 8 additions and 0 deletions
|
|
@ -307,6 +307,7 @@ struct webclient_context
|
|||
{
|
||||
/* request parameters
|
||||
*
|
||||
* protocol_version - HTTP protocol version. HTTP 1.0 by default.
|
||||
* method - HTTP method like "GET", "POST".
|
||||
* The default value is "GET".
|
||||
* url - A pointer to a string containing the full URL.
|
||||
|
|
@ -325,6 +326,12 @@ struct webclient_context
|
|||
* 10 seconds by default.
|
||||
*/
|
||||
|
||||
enum webclient_protocol_version_e
|
||||
{
|
||||
WEBCLIENT_PROTOCOL_VERSION_HTTP_1_0, /* HTTP 1.0 */
|
||||
WEBCLIENT_PROTOCOL_VERSION_HTTP_1_1, /* HTTP 1.1 */
|
||||
} protocol_version;
|
||||
|
||||
FAR const char *method;
|
||||
FAR const char *url;
|
||||
#if defined(CONFIG_WEBCLIENT_NET_LOCAL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue