Back to Yaak

Yaak HTTP Snippet Plugin

plugins-external/httpsnippet/README.md

2026.3.12.0 KB
Original Source

Yaak HTTP Snippet Plugin

Generate code snippets for HTTP requests in various languages and frameworks, powered by @readme/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

Each language supports one or more libraries:

LanguageLibraries
Clibcurl
Clojureclj-http
C#HttpClient, RestSharp
GoNative
HTTPHTTP/1.1
JavaAsyncHttp, NetHttp, OkHttp, Unirest
JavaScriptAxios, fetch, jQuery, XHR
KotlinOkHttp
Node.jsAxios, fetch, HTTP, Request, Unirest
Objective-CNSURLSession
OCamlCoHTTP
PHPcURL, Guzzle, HTTP v1, HTTP v2
PowerShellInvoke-WebRequest, RestMethod
Pythonhttp.client, Requests
Rhttr
RubyNative
ShellcURL, HTTPie, Wget
SwiftURLSession

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