Skip to content

Save and re-use reqwest instance #33

@option-greek

Description

@option-greek

Currently the reqwest client seem to be created always for executing a query:

let mut req = Client::new().request(self.method.clone(), &self.url);

This will end up doing a SSL handshake every time. It's better to create it once and reuse it to improve performance.

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