MCPcopy Create free account
hub / github.com/mitmproxy/mitmproxy / parseRaw

Function parseRaw

web/src/js/modes/upstream.ts:18–30  ·  view source on GitHub ↗
({
    data,
    listen_host,
    listen_port,
}: RawSpecParts)

Source from the content-addressed store, hash-verified

16};
17
18export const parseRaw = ({
19 data,
20 listen_host,
21 listen_port,
22}: RawSpecParts): UpstreamState => {
23 return {
24 ui_id: Math.random(),
25 active: true,
26 destination: data || "",
27 listen_host,
28 listen_port,
29 };
30};

Callers 1

upstreamSpec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…