// ChangeContext : ChangeContext is responsible to add the authorization token to the context so that
// in grpc server we can easily get authentication token and verify the authentication token.
ChangeContext : ChangeContext is responsible to add the authorization token to the context so that
in grpc server we can easily get authentication token and verify the authentication token.
// ChangeContext : ChangeContext is responsible to add the authorization token to the context so that // in grpc server we can easily get authentication token and verify the authentication token .
func ChangeContext(h http.Handler) http.Handler {
	return http.HandlerFunc(func(writer http.ResponseWriter, request *http.Request) {
		request = request.WithContext(metadata.AppendToOutgoingContext(request.Context(), "Authorization", request.Header.Get("Authorization")))
		h.ServeHTTP(writer, request)
	})
}
func ChangeContext ( h http . Handler ) http . Handler { return http . HandlerFunc ( func ( writer http . ResponseWriter , request * http . Request ) { request = request . WithContext ( metadata . AppendToOutgoingContext ( request . Context ( ) , " " , request . Header . Get ( " " ) ) ) h . ServeHTTP ( writer , request ) } ) }
ChangeContext : ChangeContext is responsible to add the authorization token to the context so that
in grpc server we can easily get authentication token and verify the authentication token.
ChangeContext : ChangeContext is responsible to add the authorization token to the context so that in grpc server we can easily get authentication token and verify the authentication token .