Repository navigation
Documentation/netutils: add comprehensive guide for webclient - #20472
Merged
Merged
Conversation
Provide a complete documentation page for the webclient network utility in Documentation/applications/netutils/webclient/index.rst, replacing the previous 7-line placeholder stub. Includes: - Architecture overview (NSH wget engine + programmatic C API) - Key features (HTTP/1.0, HTTP/1.1, chunked encoding, pluggable TLS, non-blocking I/O, proxy tunneling) - Detailed Kconfig configuration table and dependencies - NSH wget syntax, options, and real-world usage examples - C API reference for simple helpers (wget, wget_post) and the context-based API (struct webclient_context) - Complete, runnable C application example for file downloads Addresses apache#11081 Signed-off-by: Swatantra Yadav <[email protected]>
xiaoxiang781216
approved these changes
Oct 6, 2026
GUIDINGLI
approved these changes
Oct 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR replaces the 7-line placeholder stub in
Documentation/applications/netutils/webclient/index.rstwith a comprehensive, production-grade reference and guide for thewebclientHTTP client utility and library.Addresses #11081
Key Additions:
webclient's dual role as both the interactive NSHwgetshell command engine and a standalone programmatic C API.struct webclient_tls_ops), proxy tunneling, and notes the synchronous/blocking nature of DNS resolution underWEBCLIENT_FLAG_NON_BLOCKING.CONFIG_NET_TCP,CONFIG_NETDB_DNSCLIENT, etc.) and all tuneable options (CONFIG_WEBCLIENT_TIMEOUT,CONFIG_WEBCLIENT_MAXHTTPLINE, etc.).wgetCLI Guide: Documents exact synopsis, options (-o <local-path>), and practical shell examples.wget(),wget_post()) and the full context-based API (struct webclient_context,webclient_perform()).EINTRretry handling, andclose()filesystem sync error propagation.Impact
-oinstead of-f) and provides clear, secure patterns for embedded file transfers.Testing
apps/nshlib/nsh_command.candnsh_netcmds.c.apps/include/netutils/webclient.h.