Skip to content

Commit f0aa56e

Browse files
rodrigosccgithub-actions[bot]
authored andcommitted
docs: auto-generate vimdoc
1 parent c005ec5 commit f0aa56e

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

doc/nurl.nvim.txt

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*nurl.nvim.txt* For Neovim >= 0.10.0 Last change: 2026 January 17
1+
*nurl.nvim.txt* For Neovim >= 0.10.0 Last change: 2026 January 21
22

33
HTTP client for Neovim. Requests in pure Lua. Programmable, composable,
44
extensible.
@@ -196,6 +196,13 @@ A request file returns a list of request tables:
196196
["Content-Type"] = "application/json",
197197
},
198198

199+
-- Auth (optional)
200+
auth = {
201+
type = "basic",
202+
username = "user",
203+
password = "pass",
204+
},
205+
199206
-- Body (optional, use only one)
200207
data = { key = "value" }, -- table: JSON encoded
201208
data = '{"raw": "json"}', -- string: sent as-is
@@ -566,6 +573,7 @@ The expanded request object (all functions resolved):
566573
---@field query? table<string,any> Query parameters (URI-encoded)
567574
---@field title? string Display name
568575
---@field headers table<string,string> Headers
576+
---@field auth? nurl.BasicAuth Auth configuration
569577
---@field data? string|table Request body
570578
---@field form? table<string,string> Form data
571579
---@field data_urlencode? table URL-encoded data
@@ -599,6 +607,16 @@ Passed to `post_hook` and `callback`:
599607
<
600608

601609

610+
NURL.BASICAUTH *nurl.nvim-type-reference-nurl.basicauth*
611+
612+
>lua
613+
---@class nurl.BasicAuth
614+
---@field type "basic"
615+
---@field username string
616+
---@field password string
617+
<
618+
619+
602620
NURL.RESPONSE *nurl.nvim-type-reference-nurl.response*
603621

604622
Parsed HTTP response:

0 commit comments

Comments
 (0)