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

Add support for HTTP headers #123

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on May 7, 2024

  1. http: remove chunk capability

    There is no need to support chunks in python3 as the `read()` interface
    does that for us. Furthermore, this improves fetch performance in large
    queries (c.f. DinoTools#111).
    
    Signed-off-by: Frank Villaro-Dixon <[email protected]>
    Frankkkkk committed May 7, 2024
    Configuration menu
    Copy the full SHA
    6f5bb02 View commit details
    Browse the repository at this point in the history
  2. http: add support for headers

    It is useful to be able to specify additional headers to send when
    making overpass requests. For example a special user agent, or an API
    token.
    
    Signed-off-by: Frank Villaro-Dixon <[email protected]>
    Frankkkkk committed May 7, 2024
    Configuration menu
    Copy the full SHA
    5bb1b71 View commit details
    Browse the repository at this point in the history
  3. http: header: add default User-Agent header

    As customary with API libraries, it is useful for server operators to
    know which library makes requests to it. This sets the default to the
    library + version.
    
    Signed-off-by: Frank Villaro-Dixon <[email protected]>
    Frankkkkk committed May 7, 2024
    Configuration menu
    Copy the full SHA
    8829d9c View commit details
    Browse the repository at this point in the history