All Projects → nicwest → Vim Http

nicwest / Vim Http

Licence: unlicense
simple vim plugin to make http requests from buffers

Projects that are alternatives of or similar to Vim Http

Lyndacoursesdownloader
Cross platform .net core program to download lynda.com courses for offline use
Stars: ✭ 37 (-58.89%)
Mutual labels:  curl
Lush Http
Smart Http Client for PHP
Stars: ✭ 60 (-33.33%)
Mutual labels:  curl
Okurl
OkHttp Kotlin command line
Stars: ✭ 77 (-14.44%)
Mutual labels:  curl
Gmod Chttp
A HTTP()-compatible wrapper for curl in Garry's Mod.
Stars: ✭ 39 (-56.67%)
Mutual labels:  curl
Bashupload
PHP/JavaScript file upload web app to upload files from command line & browser, and download them elsewhere. Frequently used to upload/download files on servers. Hosted version is available at bashupload.com.
Stars: ✭ 56 (-37.78%)
Mutual labels:  curl
Cascadia
Go cascadia package command line CSS selector
Stars: ✭ 67 (-25.56%)
Mutual labels:  curl
Coronavirus Tracker Cli
Track conronavirus cases from command line. curl https://corona-stats.online/
Stars: ✭ 954 (+960%)
Mutual labels:  curl
Androidhttp
Android Http网络开发神兵利器
Stars: ✭ 88 (-2.22%)
Mutual labels:  curl
Curl
Wraps the curl CLI to be used in Github Actions
Stars: ✭ 59 (-34.44%)
Mutual labels:  curl
Cognitocurl
🦉🤖Easily sign curl calls to API Gateway with Cognito authorization token.
Stars: ✭ 76 (-15.56%)
Mutual labels:  curl
Icememe
Roblox Exploit Source Code Called IceMeme with some cmds, lua c and limited lua execution with simple ui in c#
Stars: ✭ 42 (-53.33%)
Mutual labels:  curl
Roboget
📦Roboget automates the process of getting apps and downloads directly
Stars: ✭ 49 (-45.56%)
Mutual labels:  curl
Snomed In 5 Minutes
Easy-to-use tutorials for accessing SNOMED APIs within 5 min using various programming languages
Stars: ✭ 70 (-22.22%)
Mutual labels:  curl
Php Educational Administration
大学微信查教务成绩 数据抓取 数据分析 微信查成绩 验证码识别 redis缓存
Stars: ✭ 38 (-57.78%)
Mutual labels:  curl
Steamcmd Autoupdate Any Gameserver
Windows SteamCMD to autoupdate and install any game server steam cmd settings configurable lots of useful features. This batch script will keep your game servers automaticly updated updating intervals announce the server is shutting down for updates etc all configurable.
Stars: ✭ 77 (-14.44%)
Mutual labels:  curl
Gdown
Download a large file from Google Drive (curl/wget fails because of the security notice).
Stars: ✭ 962 (+968.89%)
Mutual labels:  curl
Wsend
wsend: The opposite of wget
Stars: ✭ 64 (-28.89%)
Mutual labels:  curl
Curl Tap Sh
tap curl in your editor before it gets to sh it
Stars: ✭ 89 (-1.11%)
Mutual labels:  curl
Http Client
A high-performance, high-stability, cross-platform HTTP client.
Stars: ✭ 86 (-4.44%)
Mutual labels:  curl
Resume
Create an online resume that can be accessed by a `curl` command.
Stars: ✭ 74 (-17.78%)
Mutual labels:  curl

CircleCI Powered by vital.vim

vim-http

Simple wrapper over curl and http syntax highlighting.

asciicast

Usage

Write a raw http request

GET http://httpbin.org/get HTTP/1.1
Host: httpbin.org
Accept: application/json

:Http will execute the request and display the response in a new buffer.

:Http! will execute the request as above and follow any redirects.

:HttpShowCurl displays the curl request that the plugin executes under the hood

:HttpShowRequest displays the internal object representing the request

:HttpClean will add Host and Content-Length headers

:HttpAuth will prompt for authorization credentials

Configuration

g:vim_http_clean_before_do if set to 1 (default) will clean a request before sending it to curl. Disable this by setting this global to 0

g:vim_http_additional_curl_args can be used to provide additional arguments to curl.

g:vim_http_split_vertically when set to 1 will split the window vertically on response rather than horizontally (the default).

g:vim_http_tempbuffer when set to 1 response buffers will overwrite each other instead of persisting forever.

Helper Methods

http#remove_header(header) removes all occurances of the given header in the current buffer.

http#set_header(header, value) sets the header to the given value in the current buffer, removes duplicates

Examples for your vimrc:

function! s:set_json_header() abort
  call http#set_header('Content-Type', 'application/json')
endfunction

function! s:clean_personal_stuff() abort
  call http#remove_header('Cookie')
  call http#remove_header('Accept')
  call http#remove_header('User-Agent')
  call http#remove_header('Accept-Language')
endfunction 

function! s:add_compression() abort
  call http#set_header('Accept-Encoding', 'deflate, gzip')
  let g:vim_http_additional_curl_args = '--compressed'
endfunction

command! JSON call s:set_json_header()
command! Anon call s:clean_personal_stuff()
command! Compression call s:add_compression()
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].