Skip to content

doc: the document does not match the code #2485

Description

@shaozk

I tried to running the sample code in the chapter Basic Client.

Image

But I encountered a compilation error:

client.cpp:16:13: error: no matching member function for call to 'Get'
   16 |   res = cli.Get("/search", httplib::Params{{"q", "cpp-httplib"}});
      |         ~~~~^~~

I did not see the corresponding function in lastest httplib.h, but I found a similar function:

Result Get(const std::string &path, const Params &params, const Headers &headers, DownloadProgress progress = nullptr);

It seems like the documentation and the code are not consistent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions