Lines Matching refs:gateway
68 char *gateway = curlx_getenv("IPFS_GATEWAY");
71 if(gateway) {
72 if(ensure_trailing_slash(&gateway))
74 return gateway;
77 /* Try to find the gateway in the IPFS data folder. */
105 /* get the first line of the gateway file, ignore the rest */
116 gateway = curlx_dyn_ptr(&dyn);
118 if(gateway)
119 ensure_trailing_slash(&gateway);
121 if(!gateway)
126 return gateway;
131 Curl_safefree(gateway);
138 * URL that can be handled by an IPFS gateway.
145 char *gateway = NULL;
166 /* We might have a --ipfs-gateway argument. Check it first and use it. Error
170 /* ensure the gateway ends in a trailing / */
178 gateway = strdup(config->ipfs_gateway);
179 if(!gateway) {
192 gateway = ipfs_gateway();
193 if(!gateway) {
198 if(curl_url_set(gatewayurl, CURLUPART_URL, gateway, 0)) {
204 /* check for unsupported gateway parts */
211 /* get gateway parts */
229 /* set gateway parts in input url */
239 /* ensure the gateway path ends with a trailing slash */
267 free(gateway);
283 helpf(tool_stderr, "IPFS automatic gateway detection failed");
286 helpf(tool_stderr, "--ipfs-gateway was given a malformed URL");