chore: generate

This commit is contained in:
opencode-agent[bot] 2026-04-30 23:37:58 +00:00
parent 2dd1f2d453
commit 96a0dd6b04
2 changed files with 7 additions and 8 deletions

View file

@ -1,12 +1,6 @@
import { ProxyUtil } from "@/server/proxy-util"
import { Effect, Stream } from "effect"
import {
HttpBody,
HttpClient,
HttpClientRequest,
HttpServerRequest,
HttpServerResponse,
} from "effect/unstable/http"
import { HttpBody, HttpClient, HttpClientRequest, HttpServerRequest, HttpServerResponse } from "effect/unstable/http"
import * as Socket from "effect/unstable/socket/Socket"
function webSource(request: HttpServerRequest.HttpServerRequest): Request | undefined {

View file

@ -82,7 +82,12 @@ describe("HttpApi workspace proxy", () => {
new Request("http://localhost/session/abc", { method: "POST", body: "request-body" }),
)
const httpClient = yield* HttpClient.HttpClient
const response = yield* HttpApiProxy.http(httpClient, `${url}/session/abc?keep=yes`, { "x-extra": "injected" }, request)
const response = yield* HttpApiProxy.http(
httpClient,
`${url}/session/abc?keep=yes`,
{ "x-extra": "injected" },
request,
)
expect(response.status).toBe(201)
const client = HttpServerResponse.toClientResponse(response)