Ruby 3.3 リファレンスマニュアル

instance method WEBrick::HTTPResponse#request_uri

request_uri -> URI | nil[permalink][rdoc][edit]

リクエストの URI を返します。