Use the request/response types from the env

Since the request decoder has already extracted the request and response
types and stored them in the env, use those instead of fetching them
directly.