// ----------------------------------------------------------------------------
//
//  HTTPRequestExecutorConfig.swift
//
//  @author Denis Kolyasev <kolyasev@gmail.com>
//
// ----------------------------------------------------------------------------

public struct HTTPRequestExecutorConfig
{
// MARK: - Construction

    public init(
        baseURL: URL,
        throttle: Throttle = .interval(HTTPRequestExecutorConfig.defaultThrottleInterval)
    )
    {
        self.baseURL = baseURL
        self.throttle = throttle
    }

// MARK: - Properties

    public let baseURL: URL

    public let throttle: Throttle

// MARK: - Inner Types

    public enum Throttle
    {
        case disabled
        case interval(DispatchTimeInterval)
    }

// MARK: - Constants

    public static let defaultThrottleInterval: DispatchTimeInterval = .milliseconds(100)

}

// ----------------------------------------------------------------------------

// ----------------------------------------------------------------------------
//
//  HTTPRequestExecutorConfig.swift
//
//  @author Denis Kolyasev <kolyasev@gmail.com>
//
// ----------------------------------------------------------------------------

public struct HTTPRequestExecutorConfig
{
// MARK: - Construction

    public init(
        baseURL: URL,
        throttleInterval: DispatchTimeInterval = HTTPRequestExecutorConfig.defaultThrottleInterval
    )
    {
        self.baseURL = baseURL
        self.throttleInterval = throttleInterval
    }

// MARK: - Properties

    public let baseURL: URL

    public let throttleInterval: DispatchTimeInterval

// MARK: - Constants

    public static let defaultThrottleInterval: DispatchTimeInterval = .milliseconds(100)

}

// ----------------------------------------------------------------------------

--- 
+++ 
@@ -12,18 +12,26 @@
 
     public init(
         baseURL: URL,
-        throttleInterval: DispatchTimeInterval = HTTPRequestExecutorConfig.defaultThrottleInterval
+        throttle: Throttle = .interval(HTTPRequestExecutorConfig.defaultThrottleInterval)
     )
     {
         self.baseURL = baseURL
-        self.throttleInterval = throttleInterval
+        self.throttle = throttle
     }
 
 // MARK: - Properties
 
     public let baseURL: URL
 
-    public let throttleInterval: DispatchTimeInterval
+    public let throttle: Throttle
+
+// MARK: - Inner Types
+
+    public enum Throttle
+    {
+        case disabled
+        case interval(DispatchTimeInterval)
+    }
 
 // MARK: - Constants
 
Add disable http requests throttle option
