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

Function Upstream

web/src/js/components/Modes/Upstream.tsx:17–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15import { Popover } from "./Popover";
16
17export default function Upstream() {
18 const serverState = useAppSelector((state) => state.modes.upstream);
19 const backendState = useAppSelector((state) => state.backendState.servers);
20
21 const servers = serverState.map((server) => {
22 return (
23 <UpstreamRow
24 key={server.ui_id}
25 server={server}
26 backendState={backendState[getSpec(server)]}
27 />
28 );
29 });
30
31 return (
32 <div>
33 <h4 className="mode-title">
34 Explicit HTTP(S) Proxy (With Upstream Proxy)
35 </h4>
36 <p className="mode-description">
37 All requests are forwarded to a second HTTP(S) proxy server.
38 </p>
39 {servers}
40 </div>
41 );
42}
43
44function UpstreamRow({
45 server,

Callers

nothing calls this directly

Calls 2

getSpecFunction · 0.90
mapMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…