1package main
2
3// Request is used for the communication between the client and the
4// server.
5//
6// In our earlier releases we communicated from the server to the client
7// via the use of web-sockets.   Now we use a real queue.
8//
9// The server instructs the client of what it wants to fetch by sending an
10// instance of the request-object down the queue.  This structure contains
11// the actual request to send:
12//
13//   GET / HTTP/1.0
14//   Host: blah.tunnel.steve.fi
15//   ...
16//
17// As well as that we also send some extra data, currently that is just
18// the source IP that made the request for tracking purposes.
19//
20type Request struct {
21	// Request holds the literal HTTP-request which was received
22	// by the server and which is to be proxied to the local port.
23	Request string
24
25	// Source contains the IP-address of the client which actually
26	// made the request.
27	Source string
28}
29