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

First-class application/x-www-form-urlencoded support #244

Closed
LucasPickering opened this issue May 28, 2024 · 0 comments · Fixed by #254
Closed

First-class application/x-www-form-urlencoded support #244

LucasPickering opened this issue May 28, 2024 · 0 comments · Fixed by #254
Labels
qol Improvements that make usage smoother, without introducing new functionality
Milestone

Comments

@LucasPickering
Copy link
Owner

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Similar to #243, we should support the !form body type for Content-Type: application/x-www-form-urlencoded

Describe the solution you'd like
A clear and concise description of what you want to happen

requests:
  example: !request
    method: POST
    url: "http://www.example.com/"
    headers:
      Accept: application/json
      Content-Type: application/x-www-form-urlencoded
    body: !form
      grant_type: authorization_code
      code: "{{chains.authorization_code}}"

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered

Additional context
Add any other context or screenshots about the feature request here

@LucasPickering LucasPickering added the qol Improvements that make usage smoother, without introducing new functionality label May 28, 2024
LucasPickering added a commit that referenced this issue Jun 4, 2024
LucasPickering added a commit that referenced this issue Jun 4, 2024
LucasPickering added a commit that referenced this issue Jun 4, 2024
LucasPickering added a commit that referenced this issue Jun 4, 2024
LucasPickering added a commit that referenced this issue Jun 4, 2024
LucasPickering added a commit that referenced this issue Jun 5, 2024
@LucasPickering LucasPickering added this to the 1.4.0 milestone Jun 9, 2024
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this issue Jun 17, 2024
[1.4.0] - 2024-06-11

Added

- Structured bodies can now be defined with tags on the body field of a recipe,
making it more convenient to construct bodies of common types. Supported types
are:
  - `!json` [#242](LucasPickering/slumber#242)
  - `!form_urlencoded` [#244](LucasPickering/slumber#244)
  - `!form_multipart` [#243](LucasPickering/slumber#243)
  - [See docs](https://slumber.lucaspickering.me/book/api/request_collection/recipe_body.html) for usage instructions
- Support multiple instances of the same query param [#245](LucasPickering/slumber#245) (@maksimowiczm)
  - Query params can now be defined as a list of `<param>=<value>` entries
  - [See docs](https://slumber.lucaspickering.me/book/api/request_collection/query_parameters.html)
- Templates can now render binary values in certain contexts
  - [See docs](https://slumber.lucaspickering.me/book/user_guide/templates.html#binary-templates)

Changed

- When a modal/dialog is open `q` now exits the dialog instead of the entire app
- Upgrade to Rust 1.76

Fixed

- Fix "Unknown request ID" error showing on startup [#238](LucasPickering/slumber#238)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
qol Improvements that make usage smoother, without introducing new functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant