Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tower-rs/tower-http
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: tower-http-0.3.5
Choose a base ref
...
head repository: tower-rs/tower-http
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: tower-http-0.4.0
Choose a head ref
  • 17 commits
  • 30 files changed
  • 8 contributors

Commits on Dec 2, 2022

  1. Make ServeDir infallible (#283)

    * Make `ServeDir` infallible
    
    * add missing docs
    
    * depend on tracing for `fs`
    
    * add note about requiring infallible fallbacks
    
    * clean up
    
    * format
    davidpdrsn authored Dec 2, 2022
    Configuration menu
    Copy the full SHA
    f8743bf View commit details
    Browse the repository at this point in the history
  2. Implement require_auth with validate_request (#290)

    * Implement require_auth with validate_request
    
    * Update CHANGELOG
    
    * Fix style
    
    * Address comments
    
    Signed-off-by: Daniele Ahmed <ahmeddan@amazon.de>
    
    Signed-off-by: Daniele Ahmed <ahmeddan@amazon.de>
    82marbag authored Dec 2, 2022
    Configuration menu
    Copy the full SHA
    55d3a39 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    28e1d32 View commit details
    Browse the repository at this point in the history
  4. Fix bad merge

    davidpdrsn committed Dec 2, 2022
    Configuration menu
    Copy the full SHA
    5591429 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fa94ba0 View commit details
    Browse the repository at this point in the history

Commits on Dec 16, 2022

  1. Update base64 (#316)

    This updates base64 to the latest version.
    davidpdrsn authored Dec 16, 2022
    Configuration menu
    Copy the full SHA
    61e20f0 View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2023

  1. Don't include identity in Content-Encoding header (#317)

    * Don't include identity in Content-Encoding header
    
    According to the [spec][1] `identity` should only be used for the
    Accept-Encoding header and not be included in Content-Encoding.
    
    In practice this change fixes chunked video loading in Firefox when
    using `ServeDir`. (making seeking possible without downloading the whole
    video file)
    
    [1]: https://httpwg.org/specs/rfc9110.html#field.content-encoding
    
    * Address review comment
    
    * Add test for `Accept-Encoding: identity`
    Bobo1239 authored Jan 5, 2023
    Configuration menu
    Copy the full SHA
    06b21d8 View commit details
    Browse the repository at this point in the history
  2. Update changelog

    davidpdrsn committed Jan 5, 2023
    Configuration menu
    Copy the full SHA
    b6434e7 View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2023

  1. Do compress SVGs (#321)

    * Still compress svgs
    
    Even though they're images they're really just xml, so should still be
    compressed.
    
    Fixes #320
    
    * changelog
    davidpdrsn authored Jan 20, 2023
    Configuration menu
    Copy the full SHA
    e941dee View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2023

  1. Configuration menu
    Copy the full SHA
    a6d0f7b View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2023

  1. ServeDir: convert io::ErrorKind::NotADirectory to not_found (#331)

    * ServeDir: convert io::ErrorKind::NotADirectory to not_found
    
    * only check raw OS error on unix OS, add comment.
    
    * mention "is a directory" handling in ServeDir in documentation
    syphar authored Feb 21, 2023
    Configuration menu
    Copy the full SHA
    987f5c9 View commit details
    Browse the repository at this point in the history

Commits on Feb 24, 2023

  1. Support zstd (de)compression (#322)

    * Support zstd compression
    
    * fix
    
    * Give zstd highest priority for `accept-encoding`
    
    * fix typo
    
    * Use `.zst` extension for files precompressed with zstd
    
    * don't pull in two `zstd`s
    davidpdrsn authored Feb 24, 2023
    Configuration menu
    Copy the full SHA
    255c28e View commit details
    Browse the repository at this point in the history
  2. Impl Default for CompressionBody when possible (#323)

    * This allows interop with `tonic::transport::Server` and `tonic::transport::server::Router::serve_with_shutdown` which require that the responses implement `Default`.
    Ameobea authored Feb 24, 2023
    Configuration menu
    Copy the full SHA
    f3d8528 View commit details
    Browse the repository at this point in the history
  3. Request decompression (#282)

    * Add layer to decompress request bodies
    
    Still needs some refactor to remove duplicate code and needs documentation
    
    * Refactor decompression modules
    
    * Fix incorrect rename
    
    * Add ResponseFuture for RequestDecompression
    
    Which either polls its inner future or returns 415 Unsupported Media Type
    
    * Refactor DecompressionService
    
    * Rollback rename and move of `Decompression`
    
    Refactoring of `decompression` module will be done in a later PR
    
    * Re-add `request` module to the `decompression` module
    
    * Send "identity" encoding when no encodings are accepted
    
    * Add documentation
    
    * Add example
    
    * Fix styling
    
    * Fix some styling of imports and documentation
    
    * Add enable parameter to RequestDecompressionLayer::pass_through_unaccepted
    
    * Cleanup redundant code
    
    * fix imports
    
    * actually fix import
    
    * check for zstd
    
    * zstd
    
    ---------
    
    Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
    wanderinglethe and davidpdrsn authored Feb 24, 2023
    Configuration menu
    Copy the full SHA
    67130ab View commit details
    Browse the repository at this point in the history
  4. update changelog

    davidpdrsn committed Feb 24, 2023
    Configuration menu
    Copy the full SHA
    e399df9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    bc57dee View commit details
    Browse the repository at this point in the history
  6. Release 0.4.0 (#332)

    * Release 0.4.0
    
    :rocket:
    
    * add zstd to changelog
    davidpdrsn authored Feb 24, 2023
    Configuration menu
    Copy the full SHA
    842cf89 View commit details
    Browse the repository at this point in the history
Loading