1 parent
ae055be9cc
commit
1e7f8678eb
9 files changed
+377
-97
No files matched your search
@@ -75,14 +75,19 @@ Other things worth knowing:
|
||||
form stay in sync.
|
||||
- The **Auth** tab is a helper that writes the `Authorization` header. Basic
|
||||
auth is written as `Basic user password` and encoded when sent, like JetBrains.
|
||||
*Custom header* sends auth in a header of your choice (e.g. `X-API-Key`); the
|
||||
request is marked with `# @auth-header X-API-Key` so reqlite knows that header
|
||||
is its auth.
|
||||
- **Folder auth:** right-click a folder → *Folder auth…* (or a collection →
|
||||
*Default auth…*) to set auth that every request below it uses when it has no
|
||||
`Authorization` header of its own. The nearest folder wins; a folder can also
|
||||
say *None* to stop inheritance. In a request's Auth tab, *Inherit* (no
|
||||
header) uses it and *None* opts out with `# @no-auth`. It is stored in
|
||||
`<folder>/.reqlite/folder.json` as `{ "auth": "Bearer {{token}}" }`
|
||||
(`null` = none); other `.http` tools ignore it. The CLI applies it too.
|
||||
- **Consolidate auth…** (same menus) removes `Authorization` headers that match
|
||||
`<folder>/.reqlite/folder.json` as `{ "auth": "Bearer {{token}}" }`, or
|
||||
`{ "auth": { "header": "X-API-Key", "value": "{{api_key}}" } }` for a custom
|
||||
header (`null` = none); other `.http` tools ignore it. A request that already
|
||||
sets the folder's custom header itself keeps its own value. The CLI applies it too.
|
||||
- **Consolidate auth…** (same menus) removes auth headers that match
|
||||
what the request would inherit. If the folder has no auth yet, it offers the
|
||||
most used header as the folder's auth, and can pin requests that would
|
||||
otherwise change (they get their current header, or `# @no-auth`).
|
||||
@@ -129,7 +134,7 @@ on:
|
||||
- Directives: `# @name`, `# @no-redirect`, `# @no-cookie-jar`, `# @no-log`,
|
||||
`# @timeout 30` / `500 ms`, `# @connection-timeout`. `# @insecure` is a
|
||||
reqlite extension written by curl import for `-k`; `# @no-auth` is one that
|
||||
skips folder auth.
|
||||
skips folder auth, and `# @auth-header <name>` marks a custom auth header.
|
||||
- `#` and `//` comments.
|
||||
|
||||
Anything else (unknown directives, response handlers `> {% … %}` and
|
||||
|
||||
Reference in new issue
Block a user