Prefix adds segments to the relative beginning to the request path. These items will be placed before the optional Namespace, Resource, or Name sections. Setting AbsPath will clear any previously set Prefix segments
(segments ...string)
| 146 | // items will be placed before the optional Namespace, Resource, or Name sections. |
| 147 | // Setting AbsPath will clear any previously set Prefix segments |
| 148 | func (r *Request) Prefix(segments ...string) *Request { |
| 149 | if r.err != nil { |
| 150 | return r |
| 151 | } |
| 152 | r.pathPrefix = path.Join(r.pathPrefix, path.Join(segments...)) |
| 153 | return r |
| 154 | } |
| 155 | |
| 156 | // Suffix appends segments to the end of the path. These items will be placed after the prefix and optional |
| 157 | // Namespace, Resource, or Name sections. |
no outgoing calls