GitHubFile
A ContentSource pointing to a specific file in a GitHub repository.
Resolves branchName, srcPath, and fileName against the repository's GitHubRepo.rawSourcePrefix.
Parameters
the GitHub repository
the branch or tag name
the directory path within the repository
the file name
the maximum time to wait for a connection (default 10 seconds)
the maximum time to wait for data once connected (default 30 seconds)
the maximum time for the whole fetch (default none); see UrlSource
the largest body accepted, in bytes (default no limit); see UrlSource
whether to follow HTTP redirects (default false); see UrlSource
Constructors
Creates a GitHubFile with the default timeouts and limits.
Creates a GitHubFile with timeouts given as java.time.Duration and every limit, for Java callers: the constructor taking Kotlin durations cannot be called from Java.