Return the request URI pathname. If the URI is nil then the root path is returned. If the URI does not define a scheme then it defaults to https for an SSL request otherwise to http. If the URI does not define an authority then the host and port default to the host header values if any. The pathname is cached in the variable *request-pathname* when within the request service function to avoid recalculation.