added request::segments method.