Skip to content

Instantly share code, notes, and snippets.

@f3nry
Created February 1, 2019 01:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save f3nry/54690d22f04ab3b52fb8e5f6120c62f5 to your computer and use it in GitHub Desktop.
Save f3nry/54690d22f04ab3b52fb8e5f6120c62f5 to your computer and use it in GitHub Desktop.
API Gateway gRPC: First attempt
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