github_to_raw

Function github_to_raw 

Source
pub fn github_to_raw(url: &Url) -> Option<Url>
Expand description

Converts a GitHub file URL to its raw.githubusercontent.com equivalent.

It handles URLs in the format: https://github.com/{user}/{repo}/blob/{branch_or_commit}/{file_path}. It correctly ignores any query parameters or fragments in the original URL.