class AWS::S3::Request

def host

def host
  Client.path_style_bucket_name?(bucket) ? @host : "#{bucket}.#{@host}"
end