Skip to content

How to distinguish between multiple callbacks? #182

Open
@njfanxun

Description

@njfanxun

impl HttpContext for my struct, in "on_http_call_response" function ,i how to distinguish multiple dispatch_http_call?
dispatch_http_call different address and response also not the same.
I need to parse the results, but one is xml and the other is json.
I only have one token_id,
so I can't know which request call returns.
Is there any good solution to offer?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions