mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-17 22:39:42 +02:00
Update httpsnippet plugin README and bump to v1.0.3
This commit is contained in:
@@ -1,9 +1,45 @@
|
|||||||
# Yaak HTTP Snippet Plugin
|
# Yaak HTTP Snippet Plugin
|
||||||
|
|
||||||
Generate code snippets for HTTP requests in various languages and frameworks,
|
Generate code snippets for HTTP requests in various languages and frameworks,
|
||||||
powered by [httpsnippet](https://github.com/Kong/httpsnippet).
|
powered by [@readme/httpsnippet](https://github.com/readmeio/httpsnippet).
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## How It Works
|
||||||
|
|
||||||
|
Right-click any HTTP request (or use the `...` menu) and select **Generate Code Snippet**.
|
||||||
|
A dialog lets you pick a language and library, with a live preview of the generated code.
|
||||||
|
Click **Copy to Clipboard** to copy the snippet. Your language and library selections are
|
||||||
|
remembered for next time.
|
||||||
|
|
||||||
## Supported Languages
|
## Supported Languages
|
||||||
|
|
||||||
C, Clojure, C#, Go, HTTP, Java, JavaScript, Kotlin, Node.js, Objective-C,
|
Each language supports one or more libraries:
|
||||||
OCaml, PHP, PowerShell, Python, R, Ruby, Shell, and Swift.
|
|
||||||
|
| Language | Libraries |
|
||||||
|
|---|---|
|
||||||
|
| C | libcurl |
|
||||||
|
| Clojure | clj-http |
|
||||||
|
| C# | HttpClient, RestSharp |
|
||||||
|
| Go | Native |
|
||||||
|
| HTTP | HTTP/1.1 |
|
||||||
|
| Java | AsyncHttp, NetHttp, OkHttp, Unirest |
|
||||||
|
| JavaScript | Axios, fetch, jQuery, XHR |
|
||||||
|
| Kotlin | OkHttp |
|
||||||
|
| Node.js | Axios, fetch, HTTP, Request, Unirest |
|
||||||
|
| Objective-C | NSURLSession |
|
||||||
|
| OCaml | CoHTTP |
|
||||||
|
| PHP | cURL, Guzzle, HTTP v1, HTTP v2 |
|
||||||
|
| PowerShell | Invoke-WebRequest, RestMethod |
|
||||||
|
| Python | http.client, Requests |
|
||||||
|
| R | httr |
|
||||||
|
| Ruby | Native |
|
||||||
|
| Shell | cURL, HTTPie, Wget |
|
||||||
|
| Swift | URLSession |
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Renders template variables before generating snippets, so the output reflects real values
|
||||||
|
- Supports all body types: JSON, form-urlencoded, multipart, GraphQL, and raw text
|
||||||
|
- Includes authentication headers (Basic, Bearer, and API Key)
|
||||||
|
- Includes query parameters and custom headers
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@yaak/httpsnippet",
|
"name": "@yaak/httpsnippet",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "1.0.1",
|
"version": "1.0.3",
|
||||||
"displayName": "HTTP Snippet",
|
"displayName": "HTTP Snippet",
|
||||||
"description": "Generate code snippets for HTTP requests in various languages and frameworks",
|
"description": "Generate code snippets for HTTP requests in various languages and frameworks",
|
||||||
"minYaakVersion": "2026.2.0-beta.10",
|
"minYaakVersion": "2026.2.0-beta.10",
|
||||||
|
|||||||
Reference in New Issue
Block a user