Add NewGitLabClientWithOptions() for constructing GitLab client
What does this MR do?
Add NewGitLabClientWithOptions() for constructing GitLab client
Previously we had to add a new constructor every time we wanted to add
a new parameter for NewGitLabClient()
. This commit introduces a new
constructor NewGitLabClientWithOptions()
to use the Go functional
options pattern, which allows configuration of the network config in
preparation for customizing the response header timeout.