Package 

Class OkHttpRequestInfoBuilder

  • All Implemented Interfaces:
    com.datadog.android.api.instrumentation.network.HttpRequestInfoBuilder

    
    public final class OkHttpRequestInfoBuilder
     implements HttpRequestInfoBuilder
                        

    For internal usage only.

    HttpRequestInfoBuilder implementation for OkHttp requests. Allows modifying request properties such as URL, headers, and tags.

    • Method Summary

      Modifier and Type Method Description
      <ERROR CLASS> setUrl(String url)
      <ERROR CLASS> addHeader(String key, String values)
      <ERROR CLASS> setMethod(String method, HttpRequestBody body)
      <ERROR CLASS> removeHeader(String key)
      <T extends Any> <ERROR CLASS> addTag(Class<in T> type, T tag)
      HttpRequestInfo build()
      • Methods inherited from class com.datadog.android.okhttp.internal.OkHttpRequestInfoBuilder

        replaceHeader
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OkHttpRequestInfoBuilder

        OkHttpRequestInfoBuilder(Request.Builder requestBuilder)
        Parameters:
        requestBuilder - the OkHttp request builder to modify.