Skip to content

jellydn/vscode-hurl-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Welcome to vscode-hurl-runner πŸ‘‹

Version Documentation Maintenance License: MIT

Streamline API development in VSCode. Run Hurl requests, manage variables, and view responses directly in your editor.

IT Man - Streamline API Development with VSCode Hurl Runner: A Complete Guide

🏠 Homepage

Prerequisites

Features

  • πŸš€ Run Hurl requests directly from VSCode
    • ▢️ Execute single entries
    • ⏭️ Run from a specific entry to the end of the file
    • πŸ“ Run entire Hurl files
    • βœ‚οΈ Run selected text
    • πŸ” Run from the beginning to the current entry
  • πŸ”§ Variable management
    • 🌍 Support for environment files
    • πŸ“ Inline variable management
    • 🌐 Global variable support (based on captured variables)
  • πŸ“Š Capture values from responses and use them in subsequent requests
  • πŸ‘οΈ View detailed HTTP responses in a formatted webview (PrismJs with Tomorrow Night Theme)
  • 🎨 Syntax highlighting for Hurl files
  • πŸ“Š Integration with VSCode's status bar for execution feedback
  • πŸ” Code lens support for quick actions
  • πŸ” Rerun last command functionality
  • πŸ“œ View last response without re-running the request

Commands

Command Title
vscode-hurl-runner.runHurl Hurl Runner: Run at entry
vscode-hurl-runner.runHurlFile Hurl Runner: Run File
vscode-hurl-runner.runHurlToEnd Hurl Runner: Run to End
vscode-hurl-runner.manageInlineVariables Hurl Runner: Manage Inline Variables
vscode-hurl-runner.selectEnvFile Hurl Runner: Select Environment File
vscode-hurl-runner.runHurlSelection Hurl Runner: Run Selected Text
vscode-hurl-runner.rerunLastCommand Hurl Runner: Rerun Last Command
vscode-hurl-runner.runHurlFromBegin Hurl Runner: Run from Begin to Current
vscode-hurl-runner.viewLastResponse Hurl Runner: View Last Response
vscode-hurl-runner.removeGlobalVariable Remove Global Variable

Configs

Key Description Type Default
vscode-hurl-runner.hurlPath Path to the Hurl executable string "hurl"
vscode-hurl-runner.verboseMode Set the verbosity level for Hurl execution. 'verbose' provides basic information about requests and responses. 'very-verbose' includes detailed information, including timing data. string "verbose"
vscode-hurl-runner.captureToGlobalVariable When enabled, captured values will be set as global variables. boolean true

Keybindings

  • ctrl+alt+h (Windows/Linux) or cmd+alt+h (Mac): Run Hurl entry
  • ctrl+alt+f (Windows/Linux) or cmd+alt+f (Mac): Run Hurl file
  • ctrl+alt+shift+v (Windows/Linux) or cmd+alt+shift+v (Mac): Manage variables

Demo

Running a Single Hurl Entry

Run at entry Demonstrates running a single Hurl entry directly from VSCode.

Running from Entry to the End of File

Run to the end Shows how to run Hurl requests from a specific entry to the end of the file.

Running an Entire Hurl File

Run a file Illustrates running an entire Hurl file in one go.

Managing Variables

Manage variable Demonstrates how to manage inline variables for Hurl requests.

Selecting Environment File

Select env file Shows the process of selecting an environment file for Hurl requests.

Related Projects

For Neovim Users

If you prefer Neovim, check out my companion plugin:

  • hurl.nvim: A Neovim plugin for running Hurl requests directly within Neovim.

This plugin offers similar functionality to this VSCode extension, tailored for the Neovim environment.

Other Tools in the Ecosystem

Whether you're using VSCode, Neovim, or the command line, there's a tool to help you work efficiently with Hurl files.

Author

πŸ‘€ Dung Huynh Duc dung@productsway.com

🀝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a ⭐️ if this project helped you!

πŸ“ License

Copyright Β© 2024 Dung Huynh Duc dung@productsway.com.
This project is MIT licensed.

kofi paypal buymeacoffee

About

Hurl Runner is a VS Code extension designed to run HTTP requests directly from `.hurl` files.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published