forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
golang filter: fetch body data as []byte (envoyproxy#29775)
* golang filter: fetch body data as []byte Most of the Go libraries consider using []byte is more efficient. Therefore, they only provide api with []byte. By returning []byte instead of string, we can avoid an extra `string -> []byte` copy. This change also align the behavior with the proxy-wasm-go-sdk, make it easier to port Wasm plugin to Go plugin. Signed-off-by: spacewander <[email protected]> * for write op Signed-off-by: spacewander <[email protected]> --------- Signed-off-by: spacewander <[email protected]>
- Loading branch information
1 parent
34ea49f
commit b7a4d93
Showing
4 changed files
with
30 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters