Skip to content

after set http body to json strings,I want to get json string from HTTPServerResponse& response ,how to write code? #4628

@edidada

Description

@edidada

Is your feature request related to a problem? Please describe.
after set http body to json strings,I want to get json string from HTTPServerResponse& response ,how to write code?

Describe the solution you'd like

Describe alternatives you've considered

thread_local std::string tls_resp_json_body = "";//define

    tls_resp_json_body = json_body;//set
    std::string responseStr = tls_resp_json_body;//get

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions