class

Analyzer::Specification::HttpFile

Inherits Analyzer::Specification::SpecificationEngine < Analyzer < FileHelper < Reference < Object

Parses .http / .rest request files — the format shared by the VS Code REST Client extension and the JetBrains HTTP Client.

Requests are separated by ###; the text after ### is a name/comment. A request is METHOD url [HTTP/version] (the method is optional and defaults to GET), followed by header lines, a blank line, and an optional body. {{var}} placeholders resolve from in-file @name = value definitions; anything left unresolved in the path is treated as a path parameter (:var) rather than literal text. JetBrains response-handler blocks (> {% ... %} / > script.js) are skipped.

Constants

HTTP_METHODS = ALLOWED_HTTP_METHODS

Class methods

tech_name
Source

Instance methods

analyze
Source
tech

Instance-side view of the same declaration. The per-file rescues live on this base class, which has no way to name the analyzer that is running inside them, so a skipped file could not be attributed to a tech. Deriving it from analyzer_for keeps the name written exactly once.

Source