mirror of
https://github.com/proxmoxer/docs.git
synced 2026-04-25 15:15:53 +03:00
[GH-ISSUE #240] Issue on docs #65
Labels
No labels
CodeDay
enhancement
pull-request
testmu
testmu
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/docs#65
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tommihietanen on GitHub (Sep 4, 2024).
Original GitHub issue: https://github.com/hoppscotch/docs/issues/240
Path: /documentation/getting-started/rest/pre-request-scripts
You can use the pre-request script for a pre-processing task such as:
Setting parameters, headers.
Adding body data.
Adding variable values.
Including timestamps in request headers.
Example for setting headers from envs via pre-request script is needed.
There is no access to request in the pre-request scripts.
@liyasthomas commented on GitHub (Sep 4, 2024):
Hi @tommihietanen, you can use environment variables in the Headers tab as usual and
before executing a request, you can use pre-request scripts to set its values at run-time.