Packages@robojs/server
TestRequestOptions
Interface: TestRequestOptions
Options for creating a test request
Extended by
Properties
| Property | Type | Description |
|---|---|---|
baseUrl? | string | Base URL for constructing absolute URLs (defaults to 'http://localhost:3000') |
body? | unknown | Request body (will be JSON stringified if object) |
headers? | Record<string, string> | Request headers |
method? | "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD" | HTTP method (defaults to 'GET') |
params? | Record<string, string> | URL parameters extracted from dynamic segments like [id] |
path? | string | URL path (defaults to '/test') |
query? | Record<string, string | string[]> | Query string parameters |
