Skip to content

HTTPS/TLS support? #127

Description

@WasabiFan

I have an HTTP client library that I test with mockito. One of the recent additions is support for trusting custom TLS root certificates, and it would be nice to include this in my unit test coverage. However, as far as I can tell, there's no built-in support for HTTPS within mockito, nor general solution that I've seen.

Firstly, are there existing solutions or workarounds here? Perhaps something I've missed? I could see integration within mockito itself, or an HTTPS-to-HTTP proxy which facilitates communication with the former.

If not, is there interest in adding support for this? It seems to me like an optional TLS feature via native-tls or rustls wouldn't be too intrusive (it would presumably be exposed via a separate mock server URL) and I would be interested in working on such a feature if it's helpful. Alternately, this could be developed as a separate crate; I'd appreciate any thoughts on what would make sense there!

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