Type Aliases

The following type aliases are available globally.

  • Request interceptor closure type.

    Interceptors are executed in registration order before the request is sent.

    Declaration

    Swift

    public typealias HttpRequestInterceptor = @Sendable (HttpRequest) -> Void
  • Response interceptor closure type.

    Interceptors are executed in registration order after the response is received.

    Declaration

    Swift

    public typealias HttpResponseInterceptor = @Sendable (HttpResponse) -> Void