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

Feature request: Auto-generated request headers when sending a request #137

Open
dcoomber opened this issue Mar 22, 2023 · 0 comments
Open
Labels
enhancement New feature or request mid-term-goal Mid Term Goal module-request

Comments

@dcoomber
Copy link
Member

dcoomber commented Mar 22, 2023

Feature request

Add the following auto-generated request headers when sending a request:

  1. User-Agent: Bruno/0.10.2
  2. Accept: /

The User-Agent header value dynamically updates to the current running version of Bruno.

The Accept header indicates to the server that Bruno can handle all forms of response / content types.

Reason for the request

Accept header

It may be possible that some servers will not respond if we don't include the Accept header.

Additionally, another popular API client includes several auto-generated request headers. Adding the Accept header may remove a barrier to adoption for some users.

image

User-Agent header

Increases visibility of the Bruno product.

How would it work?

  1. When displaying a request to the user, the two auto-generated request headers are displayed at the top of the headers screen. This might be best accomplished by having two sections (similar to the pre / post sections on the Vars tab)
  2. The name / value for auto-generated headers cannot be amended
  3. Auto-generated headers may be disabled but not deleted. When disabled, the header is not included with the request
  4. User entered headers may have the same name as an auto-generated header. An enabled user entered header supersedes / overrides an enabled auto-generated header
  5. When saving a request, auto-generated header values are not saved with the file. The enabled / disabled state of auto-generated headers will need to be saved to the .bru file
@dcoomber dcoomber changed the title Feta Feature request: Default request headers when creating a new request Mar 22, 2023
@dcoomber dcoomber changed the title Feature request: Default request headers when creating a new request Feature request: Auto-generated request headers when sending a request Mar 22, 2023
@helloanoop helloanoop added mid-term-goal Mid Term Goal enhancement New feature or request labels Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request mid-term-goal Mid Term Goal module-request
Projects
None yet
Development

No branches or pull requests

3 participants