Skip to content

Create an API around a "Client" struct #10

@panicbit

Description

@panicbit

An API that requires to instance and keep around a Client has a few advantages:

  • More efficient
    • Url only needs to be parsed once
    • reqwest client can be reused (this is a significant performance boost)
  • Better testability by allowing to point the client to a test / mock server (Mock recaptcha API in tests #6)

The current verify API can be kept for backwards compatability and also for getting a good quickstart with the crate (similar to how there is reqwest::get).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions