Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/rest-nvim.txt
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ DYNAMIC VARIABLES *rest-nvim-usage-dynamic-variables*

`rest.nvim` allows the use of dynamic variables in requests.

The following dynamic variables are currenty supported:
The following dynamic variables are currently supported:
- $uuid: generates a universally unique identifier (UUID-v4)
- $timestamp: generates the current UNIX timestamp (seconds since epoch)
- $randomInt: generates a random integer between 0 and 1000
Expand Down
6 changes: 3 additions & 3 deletions lua/rest-nvim/request/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ local function get_headers(bufnr, start_line, end_line)
for line_number = start_line + 1, end_line do
local line_content = vim.fn.getbufline(bufnr, line_number)[1]

-- message header and message body are seperated by CRLF (see RFC 2616)
-- message header and message body are separated by CRLF (see RFC 2616)
-- for our purpose also the next request line will stop the header search
if is_request_line(line_content) or line_content == "" then
headers_end = line_number
Expand Down Expand Up @@ -185,7 +185,7 @@ end
-- start_request will find the request line (e.g. POST http://localhost:8081/foo)
-- of the current request and returns the linenumber of this request line.
-- The current request is defined as the next request line above the cursor
-- @param bufnr The buffer nummer of the .http-file
-- @param bufnr The buffer number of the .http-file
-- @param linenumber (number) From which line to start looking
local function start_request(bufnr, linenumber)
log.debug("Searching pattern starting from " .. linenumber)
Expand All @@ -202,7 +202,7 @@ end

-- end_request will find the next request line (e.g. POST http://localhost:8081/foo)
-- and returns the linenumber before this request line or the end of the buffer
-- @param bufnr The buffer nummer of the .http-file
-- @param bufnr The buffer number of the .http-file
local function end_request(bufnr, linenumber)
-- store old cursor position
local oldlinenumber = linenumber
Expand Down
6 changes: 3 additions & 3 deletions lua/rest-nvim/utils/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ M.get_env_variables = function()
end

-- get_variables Reads the environment variables found in the env_file option
-- (defualt: .env) specified in configuration or from the files being read
-- (default: .env) specified in configuration or from the files being read
-- with variables beginning with @ and returns a table with the variables
M.get_variables = function()
local variables = {}
Expand Down Expand Up @@ -401,7 +401,7 @@ M.http_status = function(code)
[200] = "OK",
[201] = "Created",
[202] = "Accepted",
[203] = "Non-authorative Information",
[203] = "Non-authoritative Information",
[204] = "No Content",
[205] = "Reset Content",
[206] = "Partial Content",
Expand Down Expand Up @@ -535,7 +535,7 @@ M.curl_error = function(code)
[63] = "Maximum file size exceeded.",
[64] = "Requested FTP SSL level failed.",
[65] = "Sending the data requires a rewind that failed.",
[66] = "Failed to initialise SSL Engine.",
[66] = "Failed to initialize SSL Engine.",
[67] = "The user name, password, or similar was not accepted and curl failed to log in.",
[68] = "File not found on TFTP server.",
[69] = "Permission problem on TFTP server.",
Expand Down