Module pretend::resolver [−][src]
Expand description
URL resolver
pretend
supports URL resolvers. They are used to
create a full URL from the path specified in the
request
attribute.
By default UrlResolver
is used to append the path
to a base URL. This resolver is used in [Pretend::with_url]
.
You can implement your own resolvers to suit your needs. For
example, you can delegate URL resolution to a load balancer.
In this case, implement ResolveUrl
.
Structs
InvalidUrlResolver | Invalid URL resolver |
Url | A parsed URL record. |
UrlResolver | Default URL resolver |
Enums
ParseError | Errors that can occur during parsing. |
Traits
ResolveUrl | Describe an URL resolver |