You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All other functionality should be built around this single method. The send_request method should also check that the request contains a valid Strest-Txn-Id header, if not it should automatically generate one. It is recommended to also set the User-Agent header appropriately. send_request should be properly threadsafe
Upon receiving a response for a specific transaction the callbacks should be called in this order:
response_callback
txn_complete_callback (if the Strest-Txn-Status header is 'complete')
error_callback should be used to handle transport problems, not error codes sent from the server. In most cases error_callback should only be called when the client is disconnected.