mirror of
https://gitlab.com/biskuteri-cafe/JKomasto2.git
synced 2024-11-20 06:34:49 +01:00
e6fea4c061
(Before this, JKomasto and sometimes the Mastodon web client would get '411 Record Not Found' when submitting the same text after deleting and redrafting. Presumably the Mastodon server caches both whether an idempotency key was fulfilled and which post it leads to, and for some reason it looks up the second and fails.)
32 lines
433 B
Java
32 lines
433 B
Java
|
|
import cafe.biskuteri.hinoki.Tree;
|
|
import java.io.IOException;
|
|
|
|
interface
|
|
RequestListener {
|
|
|
|
void
|
|
connectionFailed(IOException eIo);
|
|
|
|
void
|
|
requestFailed(int httpCode, Tree<String> json);
|
|
|
|
void
|
|
requestSucceeded(Tree<String> json);
|
|
|
|
}
|
|
|
|
interface
|
|
ServerSideEventsListener {
|
|
|
|
void
|
|
connectionFailed(IOException eIo);
|
|
|
|
void
|
|
requestFailed(int httpCode, Tree<String> json);
|
|
|
|
void
|
|
lineReceived(String line);
|
|
|
|
}
|