-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
76 lines (70 loc) · 3.68 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="./Client/CSS/style.css">
<link rel="stylesheet" href="./Client/CSS/ProxyHeader.css">
<link rel="stylesheet" href="./Client/CSS/ProxyBody.css">
<title>Proxy Client</title>
</head>
<body>
<!-- <form action="localhost:8000/apiproxy" method="get"> -->
<div class="container">
<div class="proxyHeader">
<div>
<select class="reqType" name="requestType" id="requestMethod">
<option value="GET"> Get </option>
<option value="POST"> Post </option>
<option value="PUT"> Put </option>
<option value="DELETE"> Delete </option>
</select>
<input type="text" id="url" class="inpUrl" value="" placeholder=" Enter URL"/>
<button id="send" class="btn primary" >Send</button>
</div>
<div style="display: flex; justify-content: center;">
<div style="padding: 0 10px;margin: auto 0;" >ClientID: </div>
<input type="text" class="inpClientID" id="clientID" name="" />
<button id="idGenerator" class="idGenBtn" style="border-radius: 5px;background: transparent;">Generate ClientID</button>
</div>
</div>
<div class="proxyBody">
<div class="requestBody">
<div>
<h4>Request Body</h4>
</div>
<div id="requestBodyHolder" class="paramHolder">
</div>
<span class="addMore" id="addBody">+ Add</span>
</div>
<div class="requestHeader">
<div>
<h4>Request Header</h4>
</div>
<div id="requestHeaderHolder" class="paramHolder">
</div>
<span class="addMore" id="addHeader">+ Add</span>
</div>
</div>
<div id = "respBody" class="response proxyHeader">
<div>
<h4>Status Code : </h4> <div id="statusCode"></div>
</div>
<div>
<h4> Response Text : </h4> <div id="responseText"></div>
</div>
</div>
</div>
<template id="keyValueTemplate">
<div class="keyValueHolder">
<input type="text" placeholder="key" class="inpParam keys">
<input type="text" placeholder="value" class="inpParam values">
</div>
</template>
</body>
<script src="./Client/JS/Utils.js" type="text/javascript"></script>
<script src="./Client/JS/Template.js" type="text/javascript"></script>
<script src="./Client/JS/RequestAPI.js" type="text/javascript"></script>
<script src="./Client/JS/init.js" type="text/javascript"></script>
</html>