• A direct way to set config for a request in okhttp.

    Parameters

    • config: Partial<OkhttpRequestConfig<any>>

    Returns ((target, methodName) => void)

      • (target, methodName): void
      • Parameters

        • target: any
        • methodName: string

        Returns void

    Sample

    @Config({ maxRedirects: 1 })