Create overloads for API init functions to specify custom hosts. #400
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Deprecates
rc_api_set_host
andrc_api_set_image_host
. Custom hosts are now passed to_hosted
alternatives for each API_init
function.Passing
NULL
to the_hosted
functions will use the default hosts. The non-_hosted
versions pass the custom hosts assigned by callingrc_api_set_host
andrc_api_set_image_host
. Once those functions are fully removed, the non-_hosted
versions will just passNULL
and the default hosts will be used.The existing
rc_client_set_host
function can be used to specify a custom host for use by a singlerc_client
instance (it was previously a wrapper for calling the above deprecated functions). It shouldn't be necessary to specify an image host, as #393 and #395 expose full URLs to images that should be used instead of trying to build a URL.