RequestOptions
Options for request(). Only method and url are required.
Properties
Section titled “Properties”
optionalbody?:any
Raw request body, for POST (and methods Steam accepts a body for). Cannot be combined with form or query.
contentType?
Section titled “contentType?”
optionalcontentType?:string
Content-Type of body. Defaults to application/octet-stream, and is only allowed together with body.
cookieContainer?
Section titled “cookieContainer?”
optionalcookieContainer?:CookieContainer
Cookie container from createCookieContainer(), to send and store cookies with this request.
optionalform?: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.
headers?
Section titled “headers?”
optionalheaders?:Record<string,string>
Request headers, by name. Steam may reject a header name or value it does not accept.
method
Section titled “method”method:
string
HTTP method: GET, HEAD, POST, PUT, DELETE, OPTIONS or PATCH, in any letter case.
query?
Section titled “query?”
optionalquery?: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.
requireVerifiedCertificate?
Section titled “requireVerifiedCertificate?”
optionalrequireVerifiedCertificate?:boolean
Whether HTTPS certificates must be verified. Defaults to true. Turning it off is unverified against a live Steam client.
responseHeaders?
Section titled “responseHeaders?”
optionalresponseHeaders?: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.
timeoutMs?
Section titled “timeoutMs?”
optionaltimeoutMs?: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://.
userAgent?
Section titled “userAgent?”
optionaluserAgent?: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.
© 2026 HagiCode | Powered By hagilight-starlight@0.23.0 | Branch: main | Commit: 7164ec7 | Built:
