Function get_package_request

Source
pub fn get_package_request(
    name: &str,
    api_key: Option<&str>,
    config: &Config,
) -> Request<Vec<u8>>
Expand description

Create a request to get the information for a package in the repository.

API Docs:

https://github.com/hexpm/hex/blob/main/lib/mix/tasks/hex.package.ex#L348

https://github.com/hexpm/hex/blob/main/lib/hex/api/package.ex#L36