How HTTPSnippet works: Targets, Clients, and Options
masterHTTPSnippet converts HTTP requests in HAR (HTTP Archive) format into executable code for various languages and tools. The conversion process is governed by three concepts:
- Target: A group of code generators, typically representing a programming language (e.g.,
Rust,Go,C,OCaml). - Client: A specific generator within a target, referring to a particular library (e.g., the
C#target hashttpclientandrestsharpclients). - Options: Per-client configuration settings used to control formatting, such as indentation behavior.
Input is a JSON object representing a HAR request or a full HAR log.