View Source edb_dap_reverse_request behaviour (edb v0.4.0)
Behaviour for handling reverse-requests to the client
Summary
Types
-type reaction() :: #{error => edb_dap_server:error(), actions => [edb_dap_server:action()], new_state => edb_dap_server:state()}.
-type request() :: request(edb_dap:arguments()).
-type request(T) :: #{command := binary(), arguments => T}.
Callbacks
-callback handle_response(State, Body) -> reaction() when State :: edb_dap_server:state(), Body :: edb_dap:body().
-callback make_request(Args) -> request(Args) when Args :: edb_dap:arguments().
Functions
-spec dispatch_response(Response, State) -> reaction() when Response :: edb_dap:response(), State :: edb_dap_server:state().
-spec unexpected_response() -> reaction().