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

Function makeWith

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

Source from the content-addressed store, hash-verified

130 * @since 4.0.0
131 */
132export function makeWith(
133 method: string,
134 url: string,
135 urlParams: UrlParams.Input,
136 hash: Option.Option<string>,
137 headers: Headers.Headers,
138 body: HttpBody.HttpBody
139): HttpClientRequest {
140 const self = Object.create(Proto)
141 self.method = method
142 self.url = url
143 self.urlParams = urlParams
144 self.hash = hash
145 self.headers = headers
146 self.body = body
147 return self
148}
149
150/**
151 * An empty `GET` request with no URL, query parameters, hash, headers, or body.

Callers 3

removeHashFunction · 0.70
fromWebFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected