Skip to content

RequestOptions

Options for request(). Only method and url are required.

optional body?: any

Raw request body, for POST (and methods Steam accepts a body for). Cannot be combined with form or query.


optional contentType?: string

Content-Type of body. Defaults to application/octet-stream, and is only allowed together with body.


optional cookieContainer?: CookieContainer

Cookie container from createCookieContainer(), to send and store cookies with this request.


optional form?: Record<string, string>

POST parameters, sent form-encoded. Steam sends them the same way as query for non-GET methods. Cannot be combined with body.


optional headers?: Record<string, string>

Request headers, by name. Steam may reject a header name or value it does not accept.


method: string

HTTP method: GET, HEAD, POST, PUT, DELETE, OPTIONS or PATCH, in any letter case.


optional query?: Record<string, string>

GET parameters. Steam adds them to the URL for a GET request, and they are sent as form data for other methods.


optional requireVerifiedCertificate?: boolean

Whether HTTPS certificates must be verified. Defaults to true. Turning it off is unverified against a live Steam client.


optional responseHeaders?: string[]

Names of the response headers to return in headers. Steam has no way to list all response headers, so name each one you need.


optional timeoutMs?: number

Total time limit for the request, in milliseconds. Unlike the network inactivity timeout, it does not reset when data arrives. Steam’s default is no total limit.


url: string

Absolute URL. It must start with http:// or https://.


optional userAgent?: string

Text appended to the user agent. The normal user agent is kept.

Turn ideas into shipped software.

HagiCode is an agentic coding workspace. OpenSpec workflows plan the change, multi-agent execution carries it out, and Hero Scenario makes the long run visible, so ideas become shipped software.

Smart
OpenSpec workflows turn intent into a path from proposal to shipped change.
Efficient
Multi-agent execution runs research, build, and review in parallel.
Fun
Rich UI interactions make planning, agent work, and projects easier to follow.