-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
#16 is not good enough. execute method should return contents of response.
If you want to know either 204 (No Content) or any errors, it need to check status code like below.
my $content = $api->execute().
unless ($content) {
if ($api->response->is_no_content) {
# success
} else {
# error
}
}I will add response method that returns response data includes headers, status, content.
Metadata
Metadata
Assignees
Labels
No labels