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

Function makeWith

packages/effect/src/unstable/http/HttpClientRequest.ts:118–134  ·  view source on GitHub ↗
(
  method: HttpMethod,
  url: string,
  urlParams: UrlParams.Input,
  hash: Option.Option<string>,
  headers: Headers.Headers,
  body: HttpBody.HttpBody
)

Source from the content-addressed store, hash-verified

116 * @since 4.0.0
117 */
118export function makeWith(
119 method: HttpMethod,
120 url: string,
121 urlParams: UrlParams.Input,
122 hash: Option.Option<string>,
123 headers: Headers.Headers,
124 body: HttpBody.HttpBody
125): HttpClientRequest {
126 const self = Object.create(Proto)
127 self.method = method
128 self.url = url
129 self.urlParams = urlParams
130 self.hash = hash
131 self.headers = headers
132 self.body = body
133 return self
134}
135
136/**
137 * An empty `GET` request with no URL, query parameters, hash, headers, or body.

Callers 2

removeHashFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected