summaryrefslogtreecommitdiff
path: root/httpRequest.proto
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-06 14:55:33 -0500
committerJeff Carr <[email protected]>2025-09-06 14:55:33 -0500
commit6bb1c8be437e077adc28182aae8d547a14937105 (patch)
treea2fb39bf1635a48af72cb3d950ed958ad0c8fb58 /httpRequest.proto
parentf2515acf4ada1b9c12e33d0e92c5574a81db3ce1 (diff)
post() funcv0.0.1
Diffstat (limited to 'httpRequest.proto')
-rw-r--r--httpRequest.proto33
1 files changed, 20 insertions, 13 deletions
diff --git a/httpRequest.proto b/httpRequest.proto
index efaa279..0a1a1f5 100644
--- a/httpRequest.proto
+++ b/httpRequest.proto
@@ -2,19 +2,26 @@
syntax = "proto3";
-package forgepb;
+package httppb;
import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp
- 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")
- }
+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")
+ google.protobuf.Timestamp ctime = 11; // create time of the patch
+}
+
+message HttpRequests { // `autogenpb:marshal` `autogenpb:mutex`
+ string uuid = 1; // `autogenpb:uuid:1524ed43-e57d-4bf9-9449-1cdfdc498605`
+ string version = 2; // `autogenpb:version:v0.0.1`
+ repeated HttpRequest HttpRequests = 3; // THIS MUST BE HttpRequest and then HttpRequests
+}