summaryrefslogtreecommitdiff
path: root/patchset.proto
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-05 07:10:02 -0500
committerJeff Carr <[email protected]>2025-09-05 12:54:27 -0500
commit2015f84fb4a11f83452117cfb607e47c1d0c251e (patch)
tree8f5a99b019988d88973d3f17ee0e770e258608dc /patchset.proto
parent822fe38eee03193930dab310c6dba75a1bc1d6aa (diff)
add http headers to protobuf
Diffstat (limited to 'patchset.proto')
-rw-r--r--patchset.proto15
1 files changed, 14 insertions, 1 deletions
diff --git a/patchset.proto b/patchset.proto
index 4c61127..edcd77d 100644
--- a/patchset.proto
+++ b/patchset.proto
@@ -60,11 +60,24 @@ message Patch {
// this is a "PATCH: [1/x]" series
message Patches { // `autogenpb:marshal` `autogenpb:gui:Patch`
+ message HttpRequest { // HttpRequest represents the essential fields of an incoming HTTP request.
+ string method = 1; // The request method, e.g., "GET", "POST".
+ string url = 2; // The full URL of the request, including scheme, host, path, and query string.
+ string route = 3; // just the route: "/add/" or "/find/"
+ string proto = 4; // The protocol version, e.g., "HTTP/1.1", "HTTP/2.0".
+ map<string, string> headers = 5; // The map of request headers. Header names are case-insensitive,
+ string remoteAddr = 6; // The remote IP address of the client, after resolving proxies.
+ string host = 7; // The host on which the URL is sought (www.wit.com)
+ string hostname = 8; // The hostname of the client if passed from the client (mylaptop.fun.me)
+ bytes body = 9; // The request body as raw bytes.
+ string namespace = 10; // When the body is a pb (always!). This is the pb namespace ("go.wit.com/lib/protobuf/virtpb")
+ }
string uuid = 1; // `autogenpb:uuid:2679065e-c81d-4a00-aca4-03c158a834fb`
string version = 2; // `autogenpb:version:v2.0.0`
repeated Patch Patches = 3;
+ HttpRequest httpRequest = 4; // who connected // rename httpRequest? This might make sense in our case
+ string Error = 5; // when passing these around, if there is an error, store it here
}
-
message Patchset { // `autogenpb:marshal`
Patches patches = 1; //
string name = 2; // `autogenpb:sort`