Created
February 1, 2019 01:15
-
-
Save f3nry/54690d22f04ab3b52fb8e5f6120c62f5 to your computer and use it in GitHub Desktop.
API Gateway gRPC: First attempt
This file contains hidden or 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
func handler(request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error) { | |
return events.APIGatewayProxyResponse{ | |
Body: "Hello, world.", | |
Headers: map[string]string{ | |
"Content-Type": "application/grpc+proto", | |
}, | |
StatusCode: 200, | |
}, nil | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment