protected async Task IndexTemplateExistsAsync()

in src/Elastic.Ingest.Elasticsearch/ElasticsearchChannelBase.Bootstrap.cs [96:103]


	protected async Task<bool> IndexTemplateExistsAsync(string name, CancellationToken ctx = default)
	{
		var templateExists = await Options.Transport.RequestAsync<HeadIndexTemplateResponse>
				(HttpMethod.HEAD, $"_index_template/{name}", cancellationToken: ctx)
			.ConfigureAwait(false);
		var statusCode = templateExists.ApiCallDetails.HttpStatusCode;
		return statusCode is 200;
	}