mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-06 16:31:50 +00:00
chore: generate
This commit is contained in:
parent
2dd1f2d453
commit
96a0dd6b04
2 changed files with 7 additions and 8 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue