MCPcopy Create free account
hub / github.com/Effect-TS/effect / urlParamsBody

Method urlParamsBody

packages/platform/node/src/NodeHttpClient.ts:293–306  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

291 }
292
293 get urlParamsBody(): Effect.Effect<UrlParams.UrlParams, Error.HttpClientError> {
294 return Effect.flatMap(this.text, (_) =>
295 Effect.try({
296 try: () => UrlParams.fromInput(new URLSearchParams(_)),
297 catch: (cause) =>
298 new Error.HttpClientError({
299 reason: new Error.DecodeError({
300 request: this.request,
301 response: this,
302 cause
303 })
304 })
305 }))
306 }
307
308 private formDataBody?: Effect.Effect<FormData, Error.HttpClientError>
309 get formData(): Effect.Effect<FormData, Error.HttpClientError> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected