vim-http icon indicating copy to clipboard operation
vim-http copied to clipboard

only supports hard coded list of HTTP methods/verbs

Open nicwest opened this issue 6 years ago • 1 comments

had to add PATCH manually in a number of places today, this should really should just be able to take anything.

nicwest avatar Dec 27 '18 16:12 nicwest

@nicwest What do you think about replacing the verb part of the regex

\(OPTIONS\|GET\|HEAD\|POST\|PUT\|DELETE\|TRACE\|CONNECT\|PATCH\)

with

\(\a*\)

since the first word should just be passed to curl, instead of validating if it matches the list of verbs.

shime avatar Jan 27 '19 12:01 shime