Custom handler implementations in some instances require access to
more information than downstream service calls currently permit. This
can include the status code, headers or body in the instance that a
non-successful response was returned.
RestRequestOption instances can be passed into downstream REST
requests to perform custom actions:
response, err := client.GetRestFooBar(ctx, &request,
restlib.RestRequestOnResult(func(result *restlib.HTTPResult, err error) {
// access to raw http result and error
}))
Custom handler implementations in some instances require access to more information than downstream service calls currently permit. This can include the status code, headers or body in the instance that a non-successful response was returned.
RestRequestOption instances can be passed into downstream REST requests to perform custom actions:
Closes #105 #159