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 multipart/form-data transport to support file uploads #268

Merged
merged 21 commits into from
Jul 17, 2024

Commits on May 25, 2024

  1. add multipart file upload

    benzolium committed May 25, 2024
    Configuration menu
    Copy the full SHA
    b52dec2 View commit details
    Browse the repository at this point in the history

Commits on May 26, 2024

  1. test variables mutated body

    benzolium committed May 26, 2024
    Configuration menu
    Copy the full SHA
    3dc62ad View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    10c9a9d View commit details
    Browse the repository at this point in the history
  3. test multipart request

    benzolium committed May 26, 2024
    Configuration menu
    Copy the full SHA
    9e5d3ac View commit details
    Browse the repository at this point in the history

Commits on May 27, 2024

  1. Configuration menu
    Copy the full SHA
    53c639d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5e7894c View commit details
    Browse the repository at this point in the history

Commits on May 28, 2024

  1. Configuration menu
    Copy the full SHA
    6d45359 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    65e479f View commit details
    Browse the repository at this point in the history

Commits on May 29, 2024

  1. fix multiple files map

    benzolium committed May 29, 2024
    Configuration menu
    Copy the full SHA
    4ccf31e View commit details
    Browse the repository at this point in the history
  2. fix multiple files map

    benzolium committed May 29, 2024
    Configuration menu
    Copy the full SHA
    f76bae7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5315038 View commit details
    Browse the repository at this point in the history

Commits on May 30, 2024

  1. Configuration menu
    Copy the full SHA
    c0c4a08 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f91e00c View commit details
    Browse the repository at this point in the history
  3. Use multiple return values building multipart body

    The named structs don't serve a lot of purpose when they are only used
    in one location.
    
    The variables map is being modified in place which is not very visible.
    This can lead to unexpected bugs.
    pkqk committed May 30, 2024
    Configuration menu
    Copy the full SHA
    6939986 View commit details
    Browse the repository at this point in the history
  4. Simplify variable map walk

    Bring the stack helper struct definition into the function
    Remove the unused key field and preset the path to start with
    "variables".
    pkqk committed May 30, 2024
    Configuration menu
    Copy the full SHA
    66fbaf5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    afe5211 View commit details
    Browse the repository at this point in the history
  6. Determine if multipart request is needed

    Instead of always doing so if the upstream request was. Only services
    taking an upload need a multipart request, as we can't guarantee all
    services support the mulitpart transport.
    pkqk committed May 30, 2024
    Configuration menu
    Copy the full SHA
    c77ce1b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    dac343a View commit details
    Browse the repository at this point in the history
  8. Preserve content-type of uploaded files

    CreateFormFile sets it to application/octet-stream without the option of
    specifying it, so if the upstream payload had a more specific type
    that would be lost.
    pkqk committed May 30, 2024
    Configuration menu
    Copy the full SHA
    16c7212 View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2024

  1. Merge pull request #1 from pkqk/multipart-suggestions

    Multipart suggestions
    benzolium committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    6dc4170 View commit details
    Browse the repository at this point in the history
  2. process arrays of files

    benzolium committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    3964ed0 View commit details
    Browse the repository at this point in the history