MCPcopy Index your code
hub / github.com/Effect-TS/effect / makeInternal

Function makeInternal

packages/platform/src/internal/httpClientRequest.ts:42–58  ·  view source on GitHub ↗
(
  method: HttpMethod,
  url: string,
  urlParams: UrlParams.UrlParams,
  hash: Option.Option<string>,
  headers: Headers.Headers,
  body: Body.HttpBody
)

Source from the content-addressed store, hash-verified

40}
41
42function makeInternal(
43 method: HttpMethod,
44 url: string,
45 urlParams: UrlParams.UrlParams,
46 hash: Option.Option<string>,
47 headers: Headers.Headers,
48 body: Body.HttpBody
49): ClientRequest.HttpClientRequest {
50 const self = Object.create(Proto)
51 self.method = method
52 self.url = url
53 self.urlParams = urlParams
54 self.hash = hash
55 self.headers = headers
56 self.body = body
57 return self
58}
59
60/** @internal */
61export const isClientRequest = (u: unknown): u is ClientRequest.HttpClientRequest =>

Callers 2

removeHashFunction · 0.85

Calls 1

createMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…