You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: go/gosdk/gosdk.go
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,11 @@ type EnvoyHttpFilter interface {
54
54
AppendResponseBody(data []byte) bool
55
55
// SendLocalReply sends a local reply to the client. This must not be used in after returning continue from the response headers phase.
56
56
SendLocalReply(statusCodeuint32, headers [][2]string, body []byte)
57
+
// GetSourceAddress gets the source address of the request in the format of "IP:PORT".
58
+
// This corresponds to `source.address` attribute https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/advanced/attributes.
59
+
GetSourceAddress() string
60
+
// GetRequestProtocol gets the request protocol. This corresponds to `request.protocol` attribute https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/advanced/attributes.
61
+
GetRequestProtocol() string
57
62
}
58
63
59
64
// HttpFilter is an interface that represents each Http request.
0 commit comments