PostRequestCapable
interface PostRequestCapable
Optional capability for a NetworkClient that can also perform the request-response HTTP POST some protocol steps need — currently the ECDSA pre-signature-final step, which the server runs over HTTP rather than over the WebSocket.
The bundled com.silencelaboratories.silentshard.network.websocket.SilentShardWebsocketClient implements it. A custom NetworkClient only needs it to support pre-signatures; a client that does not implement it simply cannot drive that one step, which then fails with a clear error rather than a cast exception.
Inheritors
Functions
Link copied to clipboard
abstract suspend fun sendPostRequest(action: NetworkAction, authHeader: String?, body: ByteArray): ByteArray