Skip to content

Commit

Permalink
Merge pull request #538 from SDCISA-13736-FixBadHabits-ResourceStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddenalpha authored Jan 5, 2024
2 parents 466b022 + b0231e2 commit 23b8cfc
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@
public interface ResourceStorage {
void get(String path, Handler<Buffer> bodyHandler);

/**
* <p>Under normal operation 'doneHandler' is called with the result. BUT: There are some impl
* which sometimes call it with 'null' as its value. It looks like this indicates that there was
* some kind of error. Most of the time impl knows exactly what the error was. But there is no
* way that it would report it to the caller (because this API does not provide a way to do so).</p>
*
* <p>There is yet another special case: Some impls in some cases do NOT call 'doneHandler' at
* all. So there is no way to know what happened behind the scene.</p>
*/
void put(String uri, MultiMap headers, Buffer buffer, Handler<Integer> doneHandler);

void put(String uri, Buffer buffer, Handler<Integer> doneHandler);
Expand Down

0 comments on commit 23b8cfc

Please sign in to comment.