MCPcopy
hub / github.com/mitmproxy/mitmproxy / THTTPFlow

Function THTTPFlow

web/src/js/__tests__/ducks/_tflow.ts:3–162  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1/** Auto-generated by web/gen/tflow_js.py */
2import type {HTTPFlow, TCPFlow, UDPFlow, DNSFlow} from '../../flow';
3export function THTTPFlow(): Required<HTTPFlow> {
4 return {
5 "client_conn": {
6 "alpn": "http/1.1",
7 "cert": undefined,
8 "cipher": "cipher",
9 "id": "4a18d1a0-50a1-48dd-9aa6-d45d74282939",
10 "peername": [
11 "127.0.0.1",
12 22
13 ],
14 "sni": "address",
15 "sockname": [
16 "",
17 0
18 ],
19 "timestamp_end": 946681206,
20 "timestamp_start": 946681200,
21 "timestamp_tls_setup": 946681201,
22 "tls_established": true,
23 "tls_version": "TLSv1.2"
24 },
25 "comment": "I'm a comment!",
26 "error": {
27 "msg": "error",
28 "timestamp": 946681207.0
29 },
30 "id": "d91165be-ca1f-4612-88a9-c0f8696f3e29",
31 "intercepted": false,
32 "is_replay": undefined,
33 "marked": "",
34 "modified": false,
35 "request": {
36 "contentHash": "ed7002b439e9ac845f22357d822bac1444730fbdb6016d3ec9432297b9ec9f73",
37 "contentLength": 7,
38 "headers": [
39 [
40 "header",
41 "qvalue"
42 ],
43 [
44 "content-length",
45 "7"
46 ]
47 ],
48 "host": "address",
49 "http_version": "HTTP/1.1",
50 "method": "GET",
51 "path": "/path",
52 "port": 22,
53 "pretty_host": "address",
54 "scheme": "http",
55 "timestamp_end": 946681201,
56 "timestamp_start": 946681200
57 },
58 "response": {
59 "contentHash": "ab530a13e45914982b79f9b7e3fba994cfd1f3fb22f71cea1afbf02b460c6d1d",
60 "contentLength": 7,

Callers 2

utilsSpec.tsxFile · 0.90
tutils.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…