HttpHubConnectionBuilder.setHttpClientBuilderCallback(Action1<OkHttpClient.Builder> configureBuilder) Method

Definition

Sets a method that will be called when constructing the HttpClient to allow customization such as certificate validation, proxies, and cookies. By default the client will have a cookie jar added and a read timeout for LongPolling.

public HttpHubConnectionBuilder setHttpClientBuilderCallback(Action1<OkHttpClient.Builder> configureBuilder)

Parameters

configureBuilder
Action1<okhttp3.OkHttpClient.Builder>

Callback for configuring the OkHttpClient.Builder.

Returns

This instance of the HttpHubConnectionBuilder.

Applies to