req_path_info(agooReq r) {
    if (NULL == r) {
	rb_raise(rb_eArgError, "Request is no longer valid.");
    }
    if (0 == r->path.len || (1 == r->path.len && '/' == *r->path.start)) {
	return slash_val;
    }

    if (0 == r->path.len || (1 == r->path.len && '/' == *r->path.start)) {
	return empty_val;
    }
    return rb_str_new(r->path.start, r->path.len);
}
req_path_info(agooReq r) {
    if (NULL == r) {
	rb_raise(rb_eArgError, "Request is no longer valid.");
    }
    if (0 == r->path.len || (1 == r->path.len && '/' == *r->path.start)) {
	return slash_val;
    }

    if (0 == r->path.len || (1 == r->path.len && '/' == *r->path.start)) {
	return empty_val;
    }
    return rb_str_new(r->path.start, r->path.len);
}