- Start the gRPC Gateway
go run cmd/gateway/main.go
- Go to
google.com
and execute request from browser console
fetch(
'http://localhost:8081',
{
method: 'GET',
headers: { 'Content-Type': 'application/json' }
}
).then(resp => resp.text()).then(console.log)