RequestValidator

open class RequestValidator : RequestValidatorProtocol, @unchecked Sendable

默认请求验证器,调用jsonValidator验证responseJSONObject

  • Undocumented

    Declaration

    Swift

    public static let `default`: RequestValidator
  • Undocumented

    Declaration

    Swift

    public init()
  • Declaration

    Swift

    open func validateResponse(for request: HTTPRequest) -> Bool
  • Undocumented

    Declaration

    Swift

    open func validateJSON(_ json: Any?, with jsonValidator: Any) -> Bool