You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 76db90f
Browse filesBrowse the repository at this point in the historyBrowse files
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4
+
5
+
## Project Overview
6
+
7
+
HTTPSpec is a command-line tool written in Zig that extends HTTP files with assertions for integration testing. It parses `.http` or `.httpspec` files, executes HTTP requests sequentially, and validates responses against user-defined assertions.
8
+
9
+
## Key Commands
10
+
11
+
-**Build**: `zig build`
12
+
-**Run**: `zig build run -- [file_or_directory]`
13
+
-**Test**: `zig build test`
14
+
-**Install**: `zig build install`
15
+
16
+
## Architecture
17
+
18
+
### Core Components
19
+
20
+
-**`src/main.zig`**: Entry point with CLI parsing, file discovery, and parallel test execution using thread pools
21
+
-**`src/httpfile/parser.zig`**: Parses `.http`/`.httpspec` files into structured HttpRequest objects with assertions
22
+
-**`src/httpfile/http_client.zig`**: HTTP client for executing requests and capturing responses
23
+
-**`src/httpfile/assertion_checker.zig`**: Validates responses against assertions (status codes, headers, body content)
24
+
-**`src/reporters/test_reporter.zig`**: Test result reporting and statistics
25
+
26
+
### File Format
27
+
28
+
HTTPSpec extends standard `.http` files with assertion syntax:
0 commit comments