page.html
7.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<html>
<head>
<title>ngrok</title>
<link href="/static/css/highlight.min.css" rel="stylesheet">
<link href="/static/css/bootstrap.min.css" rel="stylesheet">
<script src="/static/js/highlight.min.js"></script>
<script src="/static/js/vkbeautify.js"></script>
<script src="/static/js/jquery-1.9.1.min.js"></script>
<script src="/static/js/jquery.timeago.js"></script>
<script src="/static/js/angular.js"></script>
<script src="/static/js/angular-sanitize.min.js"></script>
<script src="/static/js/base64.js"></script>
<script src="/static/js/ngrok.js"></script>
<script type="text/javascript">
window.data = JSON.parse({% . %});
</script>
<style type="text/css">
body { margin-top: 50px; }
table.params { font-size: 12px; font-family: Courier, monospace; }
.txn-selector tr { cursor: pointer; }
.txn-selector tr:hover { background-color: #ddd; }
tr.selected, tr.selected:hover {
background-color: #ff9999;
background-color: #000000;
color:white;
}
.path {
width: 300px;
}
.wrapped {
word-wrap: break-word;
word-break: break-word;
overflow: hidden;
}
</style>
</head>
<body ng-app="ngrok">
<div class="container" ng-controller="HttpTxns">
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="#">ngrok</a>
<ul class="nav">
<li class="active"><a href="#">Inbound Requests</a></li>
<!--
<li><a href="#">Outbound Requests</a></li>
<li><a href="#">Configuration</a></li>
-->
</ul>
</div>
</div>
</div>
<div ng-show="txns.length==0" class="row">
<div class="span6 offset3">
<div class="well" style="padding: 20px 50px;">
<h4>No requests to display yet</h4>
<hr />
<h5>To get started, make a request to one of your tunnel URLs:</h5>
<ul>
<li ng-repeat="t in tunnels"><p class="lead"><a target="_blank" href="{{ t.PublicUrl }}">{{ t.PublicUrl }}</a></p></li>
</ul>
</p>
</div>
</div>
</div>
<div ng-show="txns.length>0" class="row">
<div class="span6">
<h4>All Requests</h4>
<table class="table txn-selector">
<tr ng-controller="TxnNavItem" ng-class="{'selected':isActive()}" ng-repeat="txn in txns" ng-click="makeActive()">
<td class="wrapped"><div class="path">{{ txn.Req.MethodPath }}</div></td>
<td>{{ txn.Resp.Status }}</td>
<td><span class="pull-right">{{ txn.Duration }}</span></td>
</tr>
</table>
</div>
<div class="span6" ng-controller="HttpTxn" ng-show="!!Txn">
<div class="row-fluid">
<div class="span4">
<span title="{{ISO8601(Txn.Start)}}" class="muted">
{{TimeFormat(Txn.Start)}}
</span>
</div>
<div class="span4">
<i class="icon-time"></i> Duration
<span style="margin-left: 8px;" class="muted">{{Txn.Duration}}</span>
</div>
<div class="span4">
<i class="icon-user"></i> IP
<span style="margin-left: 8px;" class="muted">{{Txn.ConnCtx.ClientAddr.split(":")[0]}}</span>
</div>
</div>
<hr />
<div ng-show="!!Req" ng-controller="HttpRequest">
<h3 class="wrapped">{{ Req.MethodPath }}</h3>
<div onbtnclick="replay()" btn="Replay" tabs="Summary,Headers,Raw,Binary">
</div>
<div ng-show="isTab('Summary')">
<keyval title="Query Params" tuples="Req.Params"></keyval>
<div body="Req.Body" binary="Req.Binary"></div>
</div>
<div ng-show="isTab('Headers')">
<keyval title="Headers" tuples="Req.Header"></keyval>
</div>
<div ng-show="isTab('Raw')">
<pre><code class="http">{{ Req.RawText }}</code></pre>
</div>
<div ng-show="isTab('Binary')">
<pre><code>{{ Req.RawBytes }}</code></pre>
</div>
</div>
<hr style="margin: 40px 0 20px" />
<div ng-show="!!Resp" ng-controller="HttpResponse">
<h3 ng-class="Resp.statusClass">{{ Resp.Status }}</h3>
<div tabs="Summary,Headers,Raw,Binary"></div>
<div ng-show="isTab('Summary')">
<div body="Resp.Body" binary="Resp.Binary"></div>
</div>
<div ng-show="isTab('Headers')">
<keyval title="Headers" tuples="Resp.Header"></keyval>
</div>
<div ng-show="isTab('Raw')">
<pre><code class="http">{{ Resp.RawText }}</code></pre>
</div>
<div ng-show="isTab('Binary')">
<pre><code>{{ Resp.RawBytes }}</code></pre>
</div>
</div>
</div>
</div>
</div>
<!-- UserVoice JavaScript SDK (only needed once on a page) -->
<script>(function(){var uv=document.createElement('script');uv.type='text/javascript';uv.async=true;uv.src='//widget.uservoice.com/4KUmdF6WZd302MfwoayMw.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(uv,s)})()</script>
<!-- A tab to launch the Classic Widget -->
<script>
UserVoice = window.UserVoice || [];
UserVoice.push(['showTab', 'classic_widget', {
mode: 'feedback',
primary_color: '#cc6d00',
link_color: '#007dbf',
forum_id: 211925,
tab_label: 'Feedback',
tab_color: '#cc6d00',
tab_position: 'middle-left',
tab_inverted: false
}]);
</script>
</body>
</html>