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

Function toString

packages/effect/src/unstable/http/Etag.ts:62–69  ·  view source on GitHub ↗
(self: Etag)

Source from the content-addressed store, hash-verified

60 * @since 4.0.0
61 */
62export const toString = (self: Etag): string => {
63 switch (self._tag) {
64 case "Weak":
65 return `W/"${self.value}"`
66 case "Strong":
67 return `"${self.value}"`
68 }
69}
70
71/**
72 * Service for generating ETags from filesystem file information or Web `File`-like metadata.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected