Skip to content

Commit 4bbf095

Browse files
committed
feature: http buf connectrpc service
Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
1 parent 689d800 commit 4bbf095

3 files changed

Lines changed: 16 additions & 2 deletions

File tree

roadrunner/api/http/v2/request.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ option go_package = "github.com/roadrunner-server/api-go/v6/http/v2;httpV2";
88
option php_metadata_namespace = "RoadRunner\\HTTP\\DTO\\V2\\GPBMetadata";
99
option php_namespace = "RoadRunner\\HTTP\\DTO\\V2";
1010

11-
message HttpRequest {
11+
message HttpHandlerRequest {
1212
string remote_addr = 1;
1313
string protocol = 2;
1414
string method = 3;

roadrunner/api/http/v2/response.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ option go_package = "github.com/roadrunner-server/api-go/v6/http/v2;httpV2";
88
option php_metadata_namespace = "RoadRunner\\HTTP\\DTO\\V2\\GPBMetadata";
99
option php_namespace = "RoadRunner\\HTTP\\DTO\\V2";
1010

11-
message HttpResponse {
11+
message HttpHandlerResponse {
1212
int64 status = 1;
1313
map<string, HttpHeaderValue> headers = 2;
1414
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
syntax = "proto3";
2+
3+
package http.v2;
4+
5+
import "http/v2/request.proto";
6+
import "http/v2/response.proto";
7+
8+
option go_package = "github.com/roadrunner-server/api-go/v6/http/v2;httpV2";
9+
option php_metadata_namespace = "RoadRunner\\HTTP\\DTO\\V2\\GPBMetadata";
10+
option php_namespace = "RoadRunner\\HTTP\\DTO\\V2";
11+
12+
service HttpProxyService {
13+
rpc HttpHandler(HttpHandlerRequest) returns (HttpHandlerResponse);
14+
}

0 commit comments

Comments
 (0)