Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

subsys: net: download_client rework #17481

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Nov 14, 2024

  1. net: new downloader

    The new downloader is replacing the download_client library and is
    based on that.
    
    Internal restructuring:
    
    * Restructuring of socket functions and files.
    * Parse HTTP header line for line. This reduces the size requirement
      for the download client recv buffer.
    * Change TLS range override logic.
    * Use range requests for nRF91 TLS only, and when specified by app.
    
    API updates:
    
    * Let application provide client buffer. This allows for multiple
      download clients with different buffer sizes.
    * Add downloader_deinit()
    * Add downloader_stop()
    * Remove downloader_disconnect()
    * Changed signature of downloader_init(), downloader_start()
      and downloader_get() to take a URI.
    * Added downloader_get_with_host_and_path() for downloads where
      host and path are separate arguments to keep backwards compatibility.
    * The transports (http, coap) are now separated out of the download
      client with its own API.
    
    Future work:
    
    * Take uri as input param to fota_download library and use URI in
      other relevant libaries and structures.
    * Curent download client is deprecated and will be removed later.
    
    Signed-off-by: Eivind Jølsgard <[email protected]>
    eivindj-nordic committed Nov 14, 2024
    Configuration menu
    Copy the full SHA
    898ce25 View commit details
    Browse the repository at this point in the history