Skip to content

Commit

Permalink
HTTP Bodies
Browse files Browse the repository at this point in the history
  • Loading branch information
daemonl committed Oct 16, 2024
1 parent 5048599 commit 3feeaf3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions proto/j5/j5/http/v1/http.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
syntax = "proto3";

package j5.http.v1;

option go_package = "github.com/pentops/j5/gen/j5/http/v1/http_j5pb";

// Temporary Redirect (HTTP 302) with the specified URL in the Location header.
message RedirectResponse {
string redirect_url = 1;
}

message RawBodyResponse {
int32 status_code = 1;
string content_type = 2;
bytes body = 3;
}

message RawBodyRequest {
bytes body = 1;
}

0 comments on commit 3feeaf3

Please sign in to comment.