files.com 1.1.827 → 1.1.829
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +16 -0
- data/_VERSION +1 -1
- data/doc/Files/APIConnectionError.html +1 -1
- data/doc/Files/APIError.html +1 -1
- data/doc/Files/AccountAlreadyExistsError.html +1 -1
- data/doc/Files/AccountLineItem.html +1 -1
- data/doc/Files/AccountOverdueError.html +1 -1
- data/doc/Files/Action.html +1 -1
- data/doc/Files/ActionLog.html +1 -1
- data/doc/Files/ActionNotificationExport.html +1 -1
- data/doc/Files/ActionNotificationExportResult.html +1 -1
- data/doc/Files/AdditionalAuthenticationRequiredError.html +1 -1
- data/doc/Files/AgentNode.html +1 -1
- data/doc/Files/AgentNodeConnection.html +1 -1
- data/doc/Files/AgentNodeInstance.html +1 -1
- data/doc/Files/AgentPushUpdate.html +1 -1
- data/doc/Files/AgentPushUpdateBlockedError.html +1 -1
- data/doc/Files/AgentUnavailableError.html +1 -1
- data/doc/Files/AgentUpgradeRequiredError.html +1 -1
- data/doc/Files/AiAssistantPersonality.html +1 -1
- data/doc/Files/AiTask.html +1 -1
- data/doc/Files/AiTaskCannotBeRunManuallyError.html +1 -1
- data/doc/Files/AlreadyCompletedError.html +1 -1
- data/doc/Files/Api.html +7 -5
- data/doc/Files/ApiClient/RequestLogContext.html +29 -29
- data/doc/Files/ApiClient/TransferSettings.html +29 -29
- data/doc/Files/ApiClient.html +210 -148
- data/doc/Files/ApiKey.html +1 -1
- data/doc/Files/ApiKeyIsDisabledError.html +1 -1
- data/doc/Files/ApiKeyIsPathRestrictedError.html +1 -1
- data/doc/Files/ApiKeyNotFoundError.html +1 -1
- data/doc/Files/ApiKeyOnlyForDesktopAppError.html +1 -1
- data/doc/Files/ApiKeyOnlyForFileOperationsError.html +1 -1
- data/doc/Files/ApiKeyOnlyForMobileAppError.html +1 -1
- data/doc/Files/ApiKeyOnlyForOfficeIntegrationError.html +1 -1
- data/doc/Files/ApiKeySessionsNotSupportedError.html +1 -1
- data/doc/Files/ApiRequestLog.html +1 -1
- data/doc/Files/App.html +1 -1
- data/doc/Files/As2IncomingMessage.html +1 -1
- data/doc/Files/As2OutgoingMessage.html +1 -1
- data/doc/Files/As2Partner.html +1 -1
- data/doc/Files/As2Station.html +1 -1
- data/doc/Files/AttachmentTooLargeError.html +1 -1
- data/doc/Files/AuthenticationError.html +1 -1
- data/doc/Files/AuthenticationRequiredError.html +1 -1
- data/doc/Files/Auto.html +1 -1
- data/doc/Files/Automation.html +1 -1
- data/doc/Files/AutomationAuthoringSchema.html +1 -1
- data/doc/Files/AutomationCannotBeRunManuallyError.html +1 -1
- data/doc/Files/AutomationExecutionNode.html +1 -1
- data/doc/Files/AutomationLog.html +1 -1
- data/doc/Files/AutomationRun.html +1 -1
- data/doc/Files/AutomationsUnavailableError.html +1 -1
- data/doc/Files/BadRequestError.html +1 -1
- data/doc/Files/BandwidthSnapshot.html +1 -1
- data/doc/Files/Behavior.html +1 -1
- data/doc/Files/BehaviorNotAllowedOnRemoteServerError.html +1 -1
- data/doc/Files/BillingInformationHiddenError.html +1 -1
- data/doc/Files/BillingPermissionRequiredError.html +1 -1
- data/doc/Files/BufferedUploadDisabledForThisDestinationError.html +1 -1
- data/doc/Files/Bundle.html +1 -1
- data/doc/Files/BundleAction.html +1 -1
- data/doc/Files/BundleDownload.html +1 -1
- data/doc/Files/BundleMaximumUsesReachedError.html +1 -1
- data/doc/Files/BundleNotification.html +1 -1
- data/doc/Files/BundleOnlyAllowsPreviewsError.html +1 -1
- data/doc/Files/BundleOperationRequiresSubfolderError.html +1 -1
- data/doc/Files/BundlePath.html +1 -1
- data/doc/Files/BundlePathNotFoundError.html +1 -1
- data/doc/Files/BundlePermissionRequiredError.html +1 -1
- data/doc/Files/BundleRecipient.html +1 -1
- data/doc/Files/BundleRegistration.html +1 -1
- data/doc/Files/BundleRegistrationCodeFailedError.html +1 -1
- data/doc/Files/BundleRegistrationNotFoundError.html +1 -1
- data/doc/Files/CannotAdministerHigherLevelUserError.html +1 -1
- data/doc/Files/CannotDownloadDirectoryError.html +1 -1
- data/doc/Files/CannotLoginWhileUsingKeyError.html +1 -1
- data/doc/Files/CantActForOtherUserError.html +1 -1
- data/doc/Files/CantMoveWithMultipleLocationsError.html +1 -1
- data/doc/Files/ChatMessage.html +1 -1
- data/doc/Files/ChatSession.html +1 -1
- data/doc/Files/ChildSiteManagementPolicy.html +1 -1
- data/doc/Files/Clickwrap.html +1 -1
- data/doc/Files/CodeNotFoundError.html +1 -1
- data/doc/Files/ConfigurationLockedPathError.html +1 -1
- data/doc/Files/ContactAdminForPasswordChangeHelpError.html +1 -1
- data/doc/Files/CouldNotCreateParentError.html +1 -1
- data/doc/Files/CustomDomain.html +1 -1
- data/doc/Files/DatetimeParseError.html +1 -1
- data/doc/Files/DesktopConfigurationProfile.html +1 -1
- data/doc/Files/DestinationExistsError.html +1 -1
- data/doc/Files/DestinationFolderLimitedError.html +1 -1
- data/doc/Files/DestinationParentConflictError.html +1 -1
- data/doc/Files/DestinationParentDoesNotExistError.html +1 -1
- data/doc/Files/DestinationSameError.html +1 -1
- data/doc/Files/DestinationSiteMismatchError.html +1 -1
- data/doc/Files/DirectConnectionInfo.html +1 -1
- data/doc/Files/DnsRecord.html +1 -1
- data/doc/Files/DoesNotSupportSortingError.html +1 -1
- data/doc/Files/DuplicateShareRecipientError.html +1 -1
- data/doc/Files/EmailIncomingMessage.html +1 -1
- data/doc/Files/EmailLog.html +1 -1
- data/doc/Files/Error.html +1 -1
- data/doc/Files/Errors.html +1 -1
- data/doc/Files/EventChannel.html +1 -1
- data/doc/Files/EventDeliveryAttempt.html +1 -1
- data/doc/Files/EventRecord.html +1 -1
- data/doc/Files/EventSubscription.html +1 -1
- data/doc/Files/EventTarget.html +1 -1
- data/doc/Files/ExavaultApiRequestLog.html +1 -1
- data/doc/Files/ExceededRuntimeLimitError.html +1 -1
- data/doc/Files/Expectation.html +1 -1
- data/doc/Files/ExpectationAlreadyHasOpenWindowError.html +1 -1
- data/doc/Files/ExpectationEvaluation.html +1 -1
- data/doc/Files/ExpectationIncident.html +1 -1
- data/doc/Files/ExpectationNotManualTriggerError.html +1 -1
- data/doc/Files/ExpiredPrivateKeyError.html +1 -1
- data/doc/Files/ExpiredPublicKeyError.html +1 -1
- data/doc/Files/ExportFailureError.html +1 -1
- data/doc/Files/ExportNotReadyError.html +1 -1
- data/doc/Files/ExternalEvent.html +1 -1
- data/doc/Files/FailedToChangePasswordError.html +1 -1
- data/doc/Files/File.html +1081 -1073
- data/doc/Files/FileAction.html +1 -1
- data/doc/Files/FileActionError.html +1 -1
- data/doc/Files/FileComment.html +1 -1
- data/doc/Files/FileCommentReaction.html +1 -1
- data/doc/Files/FileLockedError.html +1 -1
- data/doc/Files/FileMigration.html +1 -1
- data/doc/Files/FileMigrationLog.html +1 -1
- data/doc/Files/FileNotFoundError.html +1 -1
- data/doc/Files/FileNotUploadedError.html +1 -1
- data/doc/Files/FilePendingProcessingError.html +1 -1
- data/doc/Files/FileProcessingErrorError.html +1 -1
- data/doc/Files/FileTooBigToDecryptError.html +1 -1
- data/doc/Files/FileTooBigToEncryptError.html +1 -1
- data/doc/Files/FileUploadNotFoundError.html +1 -1
- data/doc/Files/FileUploadPart.html +1 -1
- data/doc/Files/FileUploadedToWrongRegionError.html +1 -1
- data/doc/Files/FileUtils.html +1 -1
- data/doc/Files/FilenameTooLongError.html +1 -1
- data/doc/Files/FilesAgentFailedAuthorizationError.html +1 -1
- data/doc/Files/FilesNativeStorageOverloadedError.html +1 -1
- data/doc/Files/Folder.html +1 -1
- data/doc/Files/FolderAdminOrBillingPermissionRequiredError.html +1 -1
- data/doc/Files/FolderAdminPermissionRequiredError.html +1 -1
- data/doc/Files/FolderLockedError.html +1 -1
- data/doc/Files/FolderMustNotBeAFileError.html +1 -1
- data/doc/Files/FolderNotEmptyError.html +1 -1
- data/doc/Files/FoldersNotAllowedError.html +1 -1
- data/doc/Files/FormField.html +1 -1
- data/doc/Files/FormFieldSet.html +1 -1
- data/doc/Files/FtpActionLog.html +1 -1
- data/doc/Files/FullPermissionRequiredError.html +1 -1
- data/doc/Files/GpgKey.html +1 -1
- data/doc/Files/Group.html +1 -1
- data/doc/Files/GroupNotFoundError.html +1 -1
- data/doc/Files/GroupUser.html +1 -1
- data/doc/Files/History.html +1 -1
- data/doc/Files/HistoryExport.html +1 -1
- data/doc/Files/HistoryExportResult.html +1 -1
- data/doc/Files/HistoryPermissionRequiredError.html +1 -1
- data/doc/Files/HistoryUnavailableError.html +1 -1
- data/doc/Files/HolidayCalendar.html +1 -1
- data/doc/Files/HolidayRegion.html +1 -1
- data/doc/Files/Image.html +1 -1
- data/doc/Files/InAppAiAssistantUnavailableError.html +1 -1
- data/doc/Files/InboundS3Log.html +1 -1
- data/doc/Files/InboxNotFoundError.html +1 -1
- data/doc/Files/InboxRecipient.html +1 -1
- data/doc/Files/InboxRegistration.html +1 -1
- data/doc/Files/InboxRegistrationCodeFailedError.html +1 -1
- data/doc/Files/InboxUpload.html +1 -1
- data/doc/Files/InsufficientPermissionForParamsError.html +1 -1
- data/doc/Files/InsufficientPermissionForSiteError.html +1 -1
- data/doc/Files/IntegrationCentricProfile.html +1 -1
- data/doc/Files/InternalGeneralErrorError.html +1 -1
- data/doc/Files/InvalidBodyError.html +1 -1
- data/doc/Files/InvalidBundleCodeError.html +1 -1
- data/doc/Files/InvalidCredentialsError.html +1 -1
- data/doc/Files/InvalidCursorError.html +1 -1
- data/doc/Files/InvalidCursorTypeForSortError.html +1 -1
- data/doc/Files/InvalidEtagsError.html +1 -1
- data/doc/Files/InvalidFileTypeError.html +1 -1
- data/doc/Files/InvalidFilenameError.html +1 -1
- data/doc/Files/InvalidFilterAliasCombinationError.html +1 -1
- data/doc/Files/InvalidFilterFieldError.html +1 -1
- data/doc/Files/InvalidFilterParamError.html +1 -1
- data/doc/Files/InvalidFilterParamFormatError.html +1 -1
- data/doc/Files/InvalidFilterParamValueError.html +1 -1
- data/doc/Files/InvalidInputEncodingError.html +1 -1
- data/doc/Files/InvalidInterfaceError.html +1 -1
- data/doc/Files/InvalidOauthError.html +1 -1
- data/doc/Files/InvalidOauthProviderError.html +1 -1
- data/doc/Files/InvalidOrExpiredCodeError.html +1 -1
- data/doc/Files/InvalidParameterError.html +1 -1
- data/doc/Files/InvalidPathError.html +1 -1
- data/doc/Files/InvalidPriorityColorError.html +1 -1
- data/doc/Files/InvalidRangeError.html +1 -1
- data/doc/Files/InvalidReturnToUrlError.html +1 -1
- data/doc/Files/InvalidSearchQueryError.html +1 -1
- data/doc/Files/InvalidSessionError.html +1 -1
- data/doc/Files/InvalidSiteError.html +1 -1
- data/doc/Files/InvalidSortFieldError.html +1 -1
- data/doc/Files/InvalidSortFilterCombinationError.html +1 -1
- data/doc/Files/InvalidUploadOffsetError.html +1 -1
- data/doc/Files/InvalidUploadPartGapError.html +1 -1
- data/doc/Files/InvalidUploadPartSizeError.html +1 -1
- data/doc/Files/InvalidUsernameOrPasswordError.html +1 -1
- data/doc/Files/InvalidWorkspaceIdHeaderError.html +1 -1
- data/doc/Files/InvalidZipFileError.html +1 -1
- data/doc/Files/Invoice.html +1 -1
- data/doc/Files/InvoiceLineItem.html +1 -1
- data/doc/Files/IpAddress.html +1 -1
- data/doc/Files/KeyLifecycleRule.html +1 -1
- data/doc/Files/List.html +1 -1
- data/doc/Files/Lock.html +1 -1
- data/doc/Files/LockOperationBusyError.html +1 -1
- data/doc/Files/LockedOutError.html +1 -1
- data/doc/Files/LockoutRegionMismatchError.html +1 -1
- data/doc/Files/MetadataCategory.html +1 -1
- data/doc/Files/MetadataNotSupportedOnRemotesError.html +1 -1
- data/doc/Files/MethodNotAllowedError.html +1 -1
- data/doc/Files/MigrationInProgressError.html +1 -1
- data/doc/Files/MissingParameterError.html +1 -1
- data/doc/Files/ModelSaveErrorError.html +1 -1
- data/doc/Files/MoverAccessDeniedError.html +1 -1
- data/doc/Files/MoverPackageRequiredError.html +1 -1
- data/doc/Files/MultipleProcessingErrorsError.html +1 -1
- data/doc/Files/MultipleSortParamsNotAllowedError.html +1 -1
- data/doc/Files/MustAuthenticateWithApiKeyError.html +1 -1
- data/doc/Files/NeedAdminPermissionForInboxError.html +1 -1
- data/doc/Files/NestedNotFoundError.html +1 -1
- data/doc/Files/NoAccountForSiteError.html +1 -1
- data/doc/Files/NoValidInputParamsError.html +1 -1
- data/doc/Files/NonAdminsMustQueryByFolderOrPathError.html +1 -1
- data/doc/Files/NotAllowedToCreateBundleError.html +1 -1
- data/doc/Files/NotAuthenticatedError.html +1 -1
- data/doc/Files/NotAuthorizedError.html +1 -1
- data/doc/Files/NotEnqueuableSyncError.html +1 -1
- data/doc/Files/NotFoundError.html +1 -1
- data/doc/Files/NotImplementedError.html +1 -1
- data/doc/Files/Notification.html +1 -1
- data/doc/Files/OffsetUploadNotAllowedWithMalwareScanningError.html +1 -1
- data/doc/Files/OneTimePasswordIncorrectError.html +1 -1
- data/doc/Files/OutboundConnectionLog.html +1 -1
- data/doc/Files/PartNumberTooLargeError.html +1 -1
- data/doc/Files/Partner.html +1 -1
- data/doc/Files/PartnerChannel.html +1 -1
- data/doc/Files/PartnerChannelTemplate.html +1 -1
- data/doc/Files/PartnerConnection.html +1 -1
- data/doc/Files/PartnerSite.html +1 -1
- data/doc/Files/PartnerSiteRequest.html +1 -1
- data/doc/Files/PasswordChangeNotRequiredError.html +1 -1
- data/doc/Files/PasswordChangeRequiredError.html +1 -1
- data/doc/Files/PathCannotHaveTrailingWhitespaceError.html +1 -1
- data/doc/Files/PathTooLongError.html +1 -1
- data/doc/Files/PathUtil.html +1 -1
- data/doc/Files/Payment.html +1 -1
- data/doc/Files/PaymentLineItem.html +1 -1
- data/doc/Files/PaymentMethodErrorError.html +1 -1
- data/doc/Files/PendingWorkEvent.html +1 -1
- data/doc/Files/Permission.html +1 -1
- data/doc/Files/PlanNotFoundError.html +1 -1
- data/doc/Files/Preview.html +1 -1
- data/doc/Files/PreviewOnlyPermissionCannotDownloadError.html +1 -1
- data/doc/Files/ProcessingFailureError.html +1 -1
- data/doc/Files/PublicHostingRequestLog.html +1 -1
- data/doc/Files/PublicIpAddress.html +1 -1
- data/doc/Files/PublicKey.html +1 -1
- data/doc/Files/RateLimitedError.html +1 -1
- data/doc/Files/ReadOnlySessionError.html +1 -1
- data/doc/Files/ReadPermissionRequiredError.html +1 -1
- data/doc/Files/ReauthenticationFailedError.html +1 -1
- data/doc/Files/ReauthenticationFailedFinalError.html +1 -1
- data/doc/Files/ReauthenticationNeededActionError.html +1 -1
- data/doc/Files/ReauthenticationNeededFieldsError.html +1 -1
- data/doc/Files/ReauthenticationRateLimitedError.html +1 -1
- data/doc/Files/RecaptchaFailedError.html +1 -1
- data/doc/Files/RecipientAlreadySharedError.html +1 -1
- data/doc/Files/RemoteBandwidthSnapshot.html +1 -1
- data/doc/Files/RemoteDesktopDebugLoggingDisabledError.html +1 -1
- data/doc/Files/RemoteEntryReadOnlyError.html +1 -1
- data/doc/Files/RemoteMountBackend.html +1 -1
- data/doc/Files/RemoteServer.html +1 -1
- data/doc/Files/RemoteServerConfigurationFile.html +1 -1
- data/doc/Files/RemoteServerCredential.html +1 -1
- data/doc/Files/RemoteServerErrorError.html +1 -1
- data/doc/Files/Request.html +1 -1
- data/doc/Files/RequestBodyTooLargeError.html +1 -1
- data/doc/Files/RequestParamsContainInvalidCharacterError.html +1 -1
- data/doc/Files/RequestParamsInvalidError.html +1 -1
- data/doc/Files/RequestParamsRequiredError.html +1 -1
- data/doc/Files/ResourceBelongsToParentSiteError.html +1 -1
- data/doc/Files/ResourceLockedError.html +1 -1
- data/doc/Files/Response.html +1 -1
- data/doc/Files/Restore.html +1 -1
- data/doc/Files/RootFolderBehaviorSiteAdminRequiredError.html +1 -1
- data/doc/Files/RootFolderBehaviorSkipSiteAdminRequiredError.html +1 -1
- data/doc/Files/Schedule.html +1 -1
- data/doc/Files/ScheduledExport.html +1 -1
- data/doc/Files/ScimLog.html +1 -1
- data/doc/Files/SearchAllOnChildPathError.html +1 -1
- data/doc/Files/SearchUnavailableError.html +1 -1
- data/doc/Files/Secret.html +1 -1
- data/doc/Files/SelfManagedRequiredError.html +1 -1
- data/doc/Files/ServiceUnavailableError.html +1 -1
- data/doc/Files/Session.html +1 -1
- data/doc/Files/SettingsChange.html +1 -1
- data/doc/Files/SftpActionLog.html +1 -1
- data/doc/Files/SftpHostKey.html +1 -1
- data/doc/Files/ShareGroup.html +1 -1
- data/doc/Files/ShareGroupMember.html +1 -1
- data/doc/Files/SiemHttpDestination.html +1 -1
- data/doc/Files/SiemHttpDestinationEvent.html +1 -1
- data/doc/Files/Site.html +1 -1
- data/doc/Files/SiteAdminOrPartnerAdminPermissionRequiredError.html +1 -1
- data/doc/Files/SiteAdminOrWorkspaceAdminOrFolderAdminPermissionRequiredError.html +1 -1
- data/doc/Files/SiteAdminOrWorkspaceAdminOrPartnerAdminOrFolderAdminPermissionRequiredError.html +1 -1
- data/doc/Files/SiteAdminOrWorkspaceAdminOrPartnerAdminPermissionRequiredError.html +1 -1
- data/doc/Files/SiteAdminOrWorkspaceAdminPermissionRequiredError.html +1 -1
- data/doc/Files/SiteAdminRequiredError.html +1 -1
- data/doc/Files/SiteConfigurationError.html +1 -1
- data/doc/Files/SiteDisabledError.html +1 -1
- data/doc/Files/SiteFilesAreImmutableError.html +1 -1
- data/doc/Files/SiteNotFoundError.html +1 -1
- data/doc/Files/SiteSubdomainRedirect.html +1 -1
- data/doc/Files/SiteWasRemovedError.html +1 -1
- data/doc/Files/SizableIO.html +1 -1
- data/doc/Files/Snapshot.html +1 -1
- data/doc/Files/SsoEvent.html +1 -1
- data/doc/Files/SsoStrategy.html +1 -1
- data/doc/Files/Status.html +1 -1
- data/doc/Files/Style.html +1 -1
- data/doc/Files/SubfolderLockedError.html +1 -1
- data/doc/Files/Sync.html +1 -1
- data/doc/Files/SyncInProgressError.html +1 -1
- data/doc/Files/SyncLog.html +1 -1
- data/doc/Files/SyncRun.html +1 -1
- data/doc/Files/SyncRunLiveTransfer.html +1 -1
- data/doc/Files/SystemProfiler.html +1 -1
- data/doc/Files/TooManyConcurrentLoginsError.html +1 -1
- data/doc/Files/TooManyConcurrentRequestsError.html +1 -1
- data/doc/Files/TooManyLoginAttemptsError.html +1 -1
- data/doc/Files/TooManyRequestsError.html +1 -1
- data/doc/Files/TooManySharesError.html +1 -1
- data/doc/Files/Transfer/Attempts.html +88 -18
- data/doc/Files/Transfer/BufferLimitError.html +1 -1
- data/doc/Files/Transfer/ByteBudget/Reservation.html +1 -1
- data/doc/Files/Transfer/ByteBudget.html +1 -1
- data/doc/Files/Transfer/CancelledError.html +1 -1
- data/doc/Files/Transfer/Checkpoint.html +1 -1
- data/doc/Files/Transfer/CheckpointError.html +1 -1
- data/doc/Files/Transfer/ClientTransport/ClientResponse.html +36 -36
- data/doc/Files/Transfer/ClientTransport/Reader.html +33 -29
- data/doc/Files/Transfer/ClientTransport.html +34 -34
- data/doc/Files/Transfer/Clock.html +1 -1
- data/doc/Files/Transfer/Control.html +1 -1
- data/doc/Files/Transfer/Controller/Attempt.html +1 -1
- data/doc/Files/Transfer/Controller.html +1 -1
- data/doc/Files/Transfer/Coordinator/Timing.html +1 -1
- data/doc/Files/Transfer/Coordinator.html +1 -1
- data/doc/Files/Transfer/DownloadCoordinator/FileSink.html +134 -60
- data/doc/Files/Transfer/DownloadCoordinator/IoSink.html +152 -77
- data/doc/Files/Transfer/DownloadCoordinator/Piece.html +37 -37
- data/doc/Files/Transfer/DownloadCoordinator.html +85 -70
- data/doc/Files/Transfer/DownloadDate.html +467 -0
- data/doc/Files/Transfer/FileSlots.html +1 -1
- data/doc/Files/Transfer/FrontendResponseError.html +1 -1
- data/doc/Files/Transfer/Holds.html +1 -1
- data/doc/Files/Transfer/HttpTransport.html +13 -12
- data/doc/Files/Transfer/Job.html +1 -1
- data/doc/Files/Transfer/Options.html +1 -1
- data/doc/Files/Transfer/PausedError.html +1 -1
- data/doc/Files/Transfer/Policy.html +1 -1
- data/doc/Files/Transfer/RequestPermits.html +1 -1
- data/doc/Files/Transfer/SourceChangedError.html +1 -1
- data/doc/Files/Transfer/StorageResponse.html +1 -1
- data/doc/Files/Transfer/StorageRetry.html +259 -102
- data/doc/Files/Transfer/UploadCoordinator/Grant.html +1 -1
- data/doc/Files/Transfer/UploadCoordinator/Part.html +1 -1
- data/doc/Files/Transfer/UploadCoordinator/Region.html +1 -1
- data/doc/Files/Transfer/UploadCoordinator/Segments.html +1 -1
- data/doc/Files/Transfer/UploadCoordinator/Source.html +1 -1
- data/doc/Files/Transfer/UploadCoordinator/StreamSource.html +1 -1
- data/doc/Files/Transfer/UploadCoordinator.html +1 -1
- data/doc/Files/Transfer/UploadPlan.html +1 -1
- data/doc/Files/Transfer/UrlExpired.html +1 -1
- data/doc/Files/Transfer/VersionChangedError.html +1 -1
- data/doc/Files/Transfer.html +3 -3
- data/doc/Files/TrialExpiredError.html +1 -1
- data/doc/Files/TrialLockedError.html +1 -1
- data/doc/Files/TwoFactorAuthenticationCodeAlreadySentError.html +1 -1
- data/doc/Files/TwoFactorAuthenticationCountryBlacklistedError.html +1 -1
- data/doc/Files/TwoFactorAuthenticationErrorError.html +1 -1
- data/doc/Files/TwoFactorAuthenticationGeneralErrorError.html +1 -1
- data/doc/Files/TwoFactorAuthenticationMethodUnsupportedErrorError.html +1 -1
- data/doc/Files/TwoFactorAuthenticationRequiredError.html +1 -1
- data/doc/Files/TwoFactorAuthenticationSetupExpiredError.html +1 -1
- data/doc/Files/TwoFactorAuthenticationUnsubscribedRecipientError.html +1 -1
- data/doc/Files/URI.html +1 -1
- data/doc/Files/UnrecognizedSortIndexError.html +1 -1
- data/doc/Files/UnsupportedCurrencyError.html +1 -1
- data/doc/Files/UnsupportedHttpResponseFormatError.html +1 -1
- data/doc/Files/UnsupportedMediaTypeError.html +1 -1
- data/doc/Files/UpdatesNotAllowedForRemotesError.html +1 -1
- data/doc/Files/UploadFinalization.html +1 -1
- data/doc/Files/UploadsUnavailableError.html +1 -1
- data/doc/Files/UsageByTopLevelDir.html +1 -1
- data/doc/Files/UsageDailySnapshot.html +1 -1
- data/doc/Files/UsageSnapshot.html +1 -1
- data/doc/Files/User.html +1 -1
- data/doc/Files/UserAdditionalEmailRecipient.html +1 -1
- data/doc/Files/UserCipherUse.html +1 -1
- data/doc/Files/UserIdInvalidError.html +1 -1
- data/doc/Files/UserIdOnUserEndpointError.html +1 -1
- data/doc/Files/UserIdWithoutSiteAdminError.html +1 -1
- data/doc/Files/UserLifecycleRule.html +1 -1
- data/doc/Files/UserNotFoundError.html +1 -1
- data/doc/Files/UserRequest.html +1 -1
- data/doc/Files/UserRequestsEnabledRequiredError.html +1 -1
- data/doc/Files/UserRequiredError.html +1 -1
- data/doc/Files/UserSecurityEvent.html +1 -1
- data/doc/Files/UserSftpClientUse.html +1 -1
- data/doc/Files/Util/LogSettings.html +1 -1
- data/doc/Files/Util.html +1 -1
- data/doc/Files/WebDavActionLog.html +1 -1
- data/doc/Files/WebhookTest.html +1 -1
- data/doc/Files/Workspace.html +1 -1
- data/doc/Files/WriteAndBundlePermissionRequiredError.html +1 -1
- data/doc/Files/WritePermissionRequiredError.html +1 -1
- data/doc/Files/ZipListEntry.html +1 -1
- data/doc/Files.html +167 -101
- data/doc/_index.html +8 -1
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +11 -2
- data/doc/index.html +11 -2
- data/doc/method_list.html +2815 -2727
- data/doc/top-level-namespace.html +1 -1
- data/docs/file.md +21 -5
- data/lib/files.com/api.rb +1 -0
- data/lib/files.com/api_client.rb +23 -2
- data/lib/files.com/models/file.rb +11 -7
- data/lib/files.com/transfer/attempts.rb +3 -2
- data/lib/files.com/transfer/download_coordinator.rb +104 -16
- data/lib/files.com/transfer/download_date.rb +44 -0
- data/lib/files.com/transfer/http_transport.rb +14 -9
- data/lib/files.com/transfer/storage_retry.rb +22 -4
- data/lib/files.com.rb +3 -0
- data/spec/models/native_file_spec.rb +4 -2
- data/spec/transfer/adaptive_download_spec.rb +335 -4
- metadata +3 -1
|
@@ -155,6 +155,33 @@ always has.</p>
|
|
|
155
155
|
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
|
156
156
|
<ul class="summary">
|
|
157
157
|
|
|
158
|
+
<li class="public ">
|
|
159
|
+
<span class="summary_signature">
|
|
160
|
+
|
|
161
|
+
<a href="#download_date-instance_method" title="#download_date (instance method)">#<strong>download_date</strong> ⇒ Object </a>
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
</span>
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
<span class="note title readonly">readonly</span>
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute download_date.</p></div></span>
|
|
181
|
+
|
|
182
|
+
</li>
|
|
183
|
+
|
|
184
|
+
|
|
158
185
|
<li class="public ">
|
|
159
186
|
<span class="summary_signature">
|
|
160
187
|
|
|
@@ -252,7 +279,7 @@ always has.</p>
|
|
|
252
279
|
<li class="public ">
|
|
253
280
|
<span class="summary_signature">
|
|
254
281
|
|
|
255
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(replay: true) ⇒ Attempts </a>
|
|
282
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(replay: true, check_download_modification_time: nil) ⇒ Attempts </a>
|
|
256
283
|
|
|
257
284
|
|
|
258
285
|
|
|
@@ -371,7 +398,7 @@ always has.</p>
|
|
|
371
398
|
<div class="method_details first">
|
|
372
399
|
<h3 class="signature first" id="initialize-instance_method">
|
|
373
400
|
|
|
374
|
-
#<strong>initialize</strong>(replay: true) ⇒ <tt><span class='object_link'><a href="" title="Files::Transfer::Attempts (class)">Attempts</a></span></tt>
|
|
401
|
+
#<strong>initialize</strong>(replay: true, check_download_modification_time: nil) ⇒ <tt><span class='object_link'><a href="" title="Files::Transfer::Attempts (class)">Attempts</a></span></tt>
|
|
375
402
|
|
|
376
403
|
|
|
377
404
|
|
|
@@ -396,12 +423,14 @@ always has.</p>
|
|
|
396
423
|
39
|
|
397
424
|
40
|
|
398
425
|
41
|
|
399
|
-
42
|
|
426
|
+
42
|
|
427
|
+
43</pre>
|
|
400
428
|
</td>
|
|
401
429
|
<td>
|
|
402
430
|
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/attempts.rb', line 38</span>
|
|
403
431
|
|
|
404
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='label'>replay:</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
|
432
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='label'>replay:</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='label'>check_download_modification_time:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
433
|
+
<span class='ivar'>@download_date</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="DownloadDate.html" title="Files::Transfer::DownloadDate (class)">DownloadDate</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="DownloadDate.html#initialize-instance_method" title="Files::Transfer::DownloadDate#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='label'>enabled:</span> <span class='id identifier rubyid_check_download_modification_time'>check_download_modification_time</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='kw'>true</span> <span class='op'>:</span> <span class='id identifier rubyid_check_download_modification_time'>check_download_modification_time</span><span class='rparen'>)</span>
|
|
405
434
|
<span class='ivar'>@retries</span> <span class='op'>=</span> <span class='int'>0</span>
|
|
406
435
|
<span class='ivar'>@renewals</span> <span class='op'>=</span> <span class='int'>0</span>
|
|
407
436
|
<span class='ivar'>@replay</span> <span class='op'>=</span> <span class='id identifier rubyid_replay'>replay</span>
|
|
@@ -419,7 +448,48 @@ always has.</p>
|
|
|
419
448
|
|
|
420
449
|
<span id=""></span>
|
|
421
450
|
<div class="method_details first">
|
|
422
|
-
<h3 class="signature first" id="
|
|
451
|
+
<h3 class="signature first" id="download_date-instance_method">
|
|
452
|
+
|
|
453
|
+
#<strong>download_date</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
</h3><div class="docstring">
|
|
460
|
+
<div class="discussion">
|
|
461
|
+
<p>Returns the value of attribute download_date.</p>
|
|
462
|
+
|
|
463
|
+
</div>
|
|
464
|
+
</div>
|
|
465
|
+
<div class="tags">
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
</div><table class="source_code">
|
|
469
|
+
<tr>
|
|
470
|
+
<td>
|
|
471
|
+
<pre class="lines">
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
23
|
|
475
|
+
24
|
|
476
|
+
25</pre>
|
|
477
|
+
</td>
|
|
478
|
+
<td>
|
|
479
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/attempts.rb', line 23</span>
|
|
480
|
+
|
|
481
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_download_date'>download_date</span>
|
|
482
|
+
<span class='ivar'>@download_date</span>
|
|
483
|
+
<span class='kw'>end</span></pre>
|
|
484
|
+
</td>
|
|
485
|
+
</tr>
|
|
486
|
+
</table>
|
|
487
|
+
</div>
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
<span id=""></span>
|
|
491
|
+
<div class="method_details ">
|
|
492
|
+
<h3 class="signature " id="retries-instance_method">
|
|
423
493
|
|
|
424
494
|
#<strong>retries</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
|
425
495
|
|
|
@@ -596,12 +666,12 @@ status and body, says its URL has expired. truncated says body is only part of w
|
|
|
596
666
|
<pre class="lines">
|
|
597
667
|
|
|
598
668
|
|
|
599
|
-
52
|
|
600
669
|
53
|
|
601
|
-
54
|
|
670
|
+
54
|
|
671
|
+
55</pre>
|
|
602
672
|
</td>
|
|
603
673
|
<td>
|
|
604
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/attempts.rb', line
|
|
674
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/attempts.rb', line 53</span>
|
|
605
675
|
|
|
606
676
|
<span class='kw'>def</span> <span class='id identifier rubyid_renewable?'>renewable?</span>
|
|
607
677
|
<span class='ivar'>@replay</span> <span class='op'>&&</span> <span class='ivar'>@renewals</span> <span class='op'><</span> <span class='const'><span class='object_link'><a href="#RENEWALS-constant" title="Files::Transfer::Attempts::RENEWALS (constant)">RENEWALS</a></span></span> <span class='op'>&&</span> <span class='ivar'>@retries</span> <span class='op'><</span> <span class='const'><span class='object_link'><a href="../../Files.html" title="Files (module)">Files</a></span></span><span class='period'>.</span><span class='id identifier rubyid_max_network_retries'><span class='object_link'><a href="../../Files.html#max_network_retries-class_method" title="Files.max_network_retries (method)">max_network_retries</a></span></span>
|
|
@@ -648,14 +718,14 @@ status and body, says its URL has expired. truncated says body is only part of w
|
|
|
648
718
|
<pre class="lines">
|
|
649
719
|
|
|
650
720
|
|
|
651
|
-
62
|
|
652
721
|
63
|
|
653
722
|
64
|
|
654
723
|
65
|
|
655
|
-
66
|
|
724
|
+
66
|
|
725
|
+
67</pre>
|
|
656
726
|
</td>
|
|
657
727
|
<td>
|
|
658
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/attempts.rb', line
|
|
728
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/attempts.rb', line 63</span>
|
|
659
729
|
|
|
660
730
|
<span class='kw'>def</span> <span class='id identifier rubyid_renewed'>renewed</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_api_expires'>api_expires</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
661
731
|
<span class='ivar'>@renewals</span> <span class='op'>+=</span> <span class='int'>1</span>
|
|
@@ -691,12 +761,12 @@ status and body, says its URL has expired. truncated says body is only part of w
|
|
|
691
761
|
<pre class="lines">
|
|
692
762
|
|
|
693
763
|
|
|
694
|
-
57
|
|
695
764
|
58
|
|
696
|
-
59
|
|
765
|
+
59
|
|
766
|
+
60</pre>
|
|
697
767
|
</td>
|
|
698
768
|
<td>
|
|
699
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/attempts.rb', line
|
|
769
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/attempts.rb', line 58</span>
|
|
700
770
|
|
|
701
771
|
<span class='kw'>def</span> <span class='id identifier rubyid_retried'>retried</span>
|
|
702
772
|
<span class='ivar'>@retries</span> <span class='op'>+=</span> <span class='int'>1</span>
|
|
@@ -721,16 +791,16 @@ status and body, says its URL has expired. truncated says body is only part of w
|
|
|
721
791
|
<pre class="lines">
|
|
722
792
|
|
|
723
793
|
|
|
724
|
-
44
|
|
725
794
|
45
|
|
726
795
|
46
|
|
727
796
|
47
|
|
728
797
|
48
|
|
729
798
|
49
|
|
730
|
-
50
|
|
799
|
+
50
|
|
800
|
+
51</pre>
|
|
731
801
|
</td>
|
|
732
802
|
<td>
|
|
733
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/attempts.rb', line
|
|
803
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/attempts.rb', line 45</span>
|
|
734
804
|
|
|
735
805
|
<span class='kw'>def</span> <span class='id identifier rubyid_use'>use</span>
|
|
736
806
|
<span class='id identifier rubyid_previous'>previous</span> <span class='op'>=</span> <span class='const'>Thread</span><span class='period'>.</span><span class='id identifier rubyid_current'>current</span><span class='lbracket'>[</span><span class='symbol'>:files_transfer_attempts</span><span class='rbracket'>]</span>
|
|
@@ -749,7 +819,7 @@ status and body, says its URL has expired. truncated says body is only part of w
|
|
|
749
819
|
</div>
|
|
750
820
|
|
|
751
821
|
<div id="footer">
|
|
752
|
-
Generated on
|
|
822
|
+
Generated on Sat Nov 14 22:52:33 2026 by
|
|
753
823
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
754
824
|
0.9.45 (ruby-4.0.9).
|
|
755
825
|
</div>
|
|
@@ -165,7 +165,7 @@ adapter still read whole.</p>
|
|
|
165
165
|
</div>
|
|
166
166
|
|
|
167
167
|
<div id="footer">
|
|
168
|
-
Generated on
|
|
168
|
+
Generated on Sat Nov 14 22:52:31 2026 by
|
|
169
169
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
170
170
|
0.9.45 (ruby-4.0.9).
|
|
171
171
|
</div>
|
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
</div>
|
|
292
292
|
|
|
293
293
|
<div id="footer">
|
|
294
|
-
Generated on
|
|
294
|
+
Generated on Sat Nov 14 22:52:32 2026 by
|
|
295
295
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
296
296
|
0.9.45 (ruby-4.0.9).
|
|
297
297
|
</div>
|
|
@@ -738,7 +738,7 @@ reservation released already or holding no more than bytes.</p>
|
|
|
738
738
|
</div>
|
|
739
739
|
|
|
740
740
|
<div id="footer">
|
|
741
|
-
Generated on
|
|
741
|
+
Generated on Sat Nov 14 22:52:32 2026 by
|
|
742
742
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
743
743
|
0.9.45 (ruby-4.0.9).
|
|
744
744
|
</div>
|
|
@@ -226,7 +226,7 @@ outcome, and Files.com may still complete the upload.</p>
|
|
|
226
226
|
</div>
|
|
227
227
|
|
|
228
228
|
<div id="footer">
|
|
229
|
-
Generated on
|
|
229
|
+
Generated on Sat Nov 14 22:52:31 2026 by
|
|
230
230
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
231
231
|
0.9.45 (ruby-4.0.9).
|
|
232
232
|
</div>
|
|
@@ -1361,7 +1361,7 @@ verify! does, while another resume holds it, and once it is spent.</p>
|
|
|
1361
1361
|
</div>
|
|
1362
1362
|
|
|
1363
1363
|
<div id="footer">
|
|
1364
|
-
Generated on
|
|
1364
|
+
Generated on Sat Nov 14 22:52:35 2026 by
|
|
1365
1365
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1366
1366
|
0.9.45 (ruby-4.0.9).
|
|
1367
1367
|
</div>
|
|
@@ -163,7 +163,7 @@ truncated before it is raised.</p>
|
|
|
163
163
|
</div>
|
|
164
164
|
|
|
165
165
|
<div id="footer">
|
|
166
|
-
Generated on
|
|
166
|
+
Generated on Sat Nov 14 22:52:31 2026 by
|
|
167
167
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
168
168
|
0.9.45 (ruby-4.0.9).
|
|
169
169
|
</div>
|
|
@@ -346,13 +346,13 @@ Net::HTTPResponse; its body arrives through a Reader's Fiber.</p>
|
|
|
346
346
|
<pre class="lines">
|
|
347
347
|
|
|
348
348
|
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
349
|
+
178
|
|
350
|
+
179
|
|
351
|
+
180
|
|
352
|
+
181</pre>
|
|
353
353
|
</td>
|
|
354
354
|
<td>
|
|
355
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/http_transport.rb', line
|
|
355
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/http_transport.rb', line 178</span>
|
|
356
356
|
|
|
357
357
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_status'>status</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span><span class='rparen'>)</span>
|
|
358
358
|
<span class='ivar'>@code</span> <span class='op'>=</span> <span class='id identifier rubyid_status'>status</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
|
|
@@ -394,12 +394,12 @@ Net::HTTPResponse; its body arrives through a Reader's Fiber.</p>
|
|
|
394
394
|
<pre class="lines">
|
|
395
395
|
|
|
396
396
|
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
397
|
+
176
|
|
398
|
+
177
|
|
399
|
+
178</pre>
|
|
400
400
|
</td>
|
|
401
401
|
<td>
|
|
402
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/http_transport.rb', line
|
|
402
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/http_transport.rb', line 176</span>
|
|
403
403
|
|
|
404
404
|
<span class='kw'>def</span> <span class='id identifier rubyid_code'>code</span>
|
|
405
405
|
<span class='ivar'>@code</span>
|
|
@@ -431,12 +431,12 @@ Net::HTTPResponse; its body arrives through a Reader's Fiber.</p>
|
|
|
431
431
|
<pre class="lines">
|
|
432
432
|
|
|
433
433
|
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
434
|
+
183
|
|
435
|
+
184
|
|
436
|
+
185</pre>
|
|
437
437
|
</td>
|
|
438
438
|
<td>
|
|
439
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/http_transport.rb', line
|
|
439
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/http_transport.rb', line 183</span>
|
|
440
440
|
|
|
441
441
|
<span class='kw'>def</span> <span class='op'>[]</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
|
442
442
|
<span class='ivar'>@headers</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
|
|
@@ -483,12 +483,12 @@ Net::HTTPResponse; its body arrives through a Reader's Fiber.</p>
|
|
|
483
483
|
<pre class="lines">
|
|
484
484
|
|
|
485
485
|
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
486
|
+
200
|
|
487
|
+
201
|
|
488
|
+
202</pre>
|
|
489
489
|
</td>
|
|
490
490
|
<td>
|
|
491
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/http_transport.rb', line
|
|
491
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/http_transport.rb', line 200</span>
|
|
492
492
|
|
|
493
493
|
<span class='kw'>def</span> <span class='id identifier rubyid_chunked?'>chunked?</span>
|
|
494
494
|
<span class='kw'>self</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>transfer-encoding</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>chunked</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
@@ -513,13 +513,13 @@ Net::HTTPResponse; its body arrives through a Reader's Fiber.</p>
|
|
|
513
513
|
<pre class="lines">
|
|
514
514
|
|
|
515
515
|
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
516
|
+
195
|
|
517
|
+
196
|
|
518
|
+
197
|
|
519
|
+
198</pre>
|
|
520
520
|
</td>
|
|
521
521
|
<td>
|
|
522
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/http_transport.rb', line
|
|
522
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/http_transport.rb', line 195</span>
|
|
523
523
|
|
|
524
524
|
<span class='kw'>def</span> <span class='id identifier rubyid_content_length'>content_length</span>
|
|
525
525
|
<span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='kw'>self</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>content-length</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span>
|
|
@@ -567,12 +567,12 @@ Net::HTTPResponse; its body arrives through a Reader's Fiber.</p>
|
|
|
567
567
|
<pre class="lines">
|
|
568
568
|
|
|
569
569
|
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
570
|
+
187
|
|
571
|
+
188
|
|
572
|
+
189</pre>
|
|
573
573
|
</td>
|
|
574
574
|
<td>
|
|
575
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/http_transport.rb', line
|
|
575
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/http_transport.rb', line 187</span>
|
|
576
576
|
|
|
577
577
|
<span class='kw'>def</span> <span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
|
578
578
|
<span class='ivar'>@headers</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span><span class='rparen'>)</span>
|
|
@@ -597,14 +597,14 @@ Net::HTTPResponse; its body arrives through a Reader's Fiber.</p>
|
|
|
597
597
|
<pre class="lines">
|
|
598
598
|
|
|
599
599
|
|
|
600
|
-
201
|
|
601
|
-
202
|
|
602
|
-
203
|
|
603
600
|
204
|
|
604
|
-
205
|
|
601
|
+
205
|
|
602
|
+
206
|
|
603
|
+
207
|
|
604
|
+
208</pre>
|
|
605
605
|
</td>
|
|
606
606
|
<td>
|
|
607
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/http_transport.rb', line
|
|
607
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/http_transport.rb', line 204</span>
|
|
608
608
|
|
|
609
609
|
<span class='kw'>def</span> <span class='id identifier rubyid_read_body'>read_body</span>
|
|
610
610
|
<span class='kw'>while</span> <span class='lparen'>(</span><span class='id identifier rubyid_chunk'>chunk</span> <span class='op'>=</span> <span class='const'>Fiber</span><span class='period'>.</span><span class='id identifier rubyid_yield'>yield</span><span class='rparen'>)</span>
|
|
@@ -631,12 +631,12 @@ Net::HTTPResponse; its body arrives through a Reader's Fiber.</p>
|
|
|
631
631
|
<pre class="lines">
|
|
632
632
|
|
|
633
633
|
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
634
|
+
191
|
|
635
|
+
192
|
|
636
|
+
193</pre>
|
|
637
637
|
</td>
|
|
638
638
|
<td>
|
|
639
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/http_transport.rb', line
|
|
639
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/http_transport.rb', line 191</span>
|
|
640
640
|
|
|
641
641
|
<span class='kw'>def</span> <span class='id identifier rubyid_to_hash'>to_hash</span>
|
|
642
642
|
<span class='ivar'>@headers</span>
|
|
@@ -651,7 +651,7 @@ Net::HTTPResponse; its body arrives through a Reader's Fiber.</p>
|
|
|
651
651
|
</div>
|
|
652
652
|
|
|
653
653
|
<div id="footer">
|
|
654
|
-
Generated on
|
|
654
|
+
Generated on Sat Nov 14 22:52:43 2026 by
|
|
655
655
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
656
656
|
0.9.45 (ruby-4.0.9).
|
|
657
657
|
</div>
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
<h2>Overview</h2><div class="docstring">
|
|
106
106
|
<div class="discussion">
|
|
107
107
|
<p>Faraday's on_data for one request. It runs a success handler in a Fiber that waits for each chunk as it arrives,
|
|
108
|
-
and keeps the first 64 KiB of any other response.</p>
|
|
108
|
+
and keeps the first 64 KiB of any other response, calling on_error_chunk, when given, as each of its chunks arrives.</p>
|
|
109
109
|
|
|
110
110
|
</div>
|
|
111
111
|
</div>
|
|
@@ -152,7 +152,7 @@ and keeps the first 64 KiB of any other response.</p>
|
|
|
152
152
|
<li class="public ">
|
|
153
153
|
<span class="summary_signature">
|
|
154
154
|
|
|
155
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(on_success, timing) ⇒ Reader </a>
|
|
155
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(on_success, timing, on_error_chunk = nil) ⇒ Reader </a>
|
|
156
156
|
|
|
157
157
|
|
|
158
158
|
|
|
@@ -249,7 +249,7 @@ and keeps the first 64 KiB of any other response.</p>
|
|
|
249
249
|
<div class="method_details first">
|
|
250
250
|
<h3 class="signature first" id="initialize-instance_method">
|
|
251
251
|
|
|
252
|
-
#<strong>initialize</strong>(on_success, timing) ⇒ <tt><span class='object_link'><a href="" title="Files::Transfer::ClientTransport::Reader (class)">Reader</a></span></tt>
|
|
252
|
+
#<strong>initialize</strong>(on_success, timing, on_error_chunk = nil) ⇒ <tt><span class='object_link'><a href="" title="Files::Transfer::ClientTransport::Reader (class)">Reader</a></span></tt>
|
|
253
253
|
|
|
254
254
|
|
|
255
255
|
|
|
@@ -270,22 +270,24 @@ and keeps the first 64 KiB of any other response.</p>
|
|
|
270
270
|
<pre class="lines">
|
|
271
271
|
|
|
272
272
|
|
|
273
|
-
211
|
|
274
|
-
212
|
|
275
|
-
213
|
|
276
273
|
214
|
|
277
274
|
215
|
|
278
275
|
216
|
|
279
276
|
217
|
|
280
277
|
218
|
|
281
|
-
219
|
|
278
|
+
219
|
|
279
|
+
220
|
|
280
|
+
221
|
|
281
|
+
222
|
|
282
|
+
223</pre>
|
|
282
283
|
</td>
|
|
283
284
|
<td>
|
|
284
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/http_transport.rb', line
|
|
285
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/http_transport.rb', line 214</span>
|
|
285
286
|
|
|
286
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_on_success'>on_success</span><span class='comma'>,</span> <span class='id identifier rubyid_timing'>timing</span><span class='rparen'>)</span>
|
|
287
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_on_success'>on_success</span><span class='comma'>,</span> <span class='id identifier rubyid_timing'>timing</span><span class='comma'>,</span> <span class='id identifier rubyid_on_error_chunk'>on_error_chunk</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
287
288
|
<span class='ivar'>@on_success</span> <span class='op'>=</span> <span class='id identifier rubyid_on_success'>on_success</span>
|
|
288
289
|
<span class='ivar'>@timing</span> <span class='op'>=</span> <span class='id identifier rubyid_timing'>timing</span>
|
|
290
|
+
<span class='ivar'>@on_error_chunk</span> <span class='op'>=</span> <span class='id identifier rubyid_on_error_chunk'>on_error_chunk</span>
|
|
289
291
|
<span class='ivar'>@fiber</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
|
290
292
|
<span class='ivar'>@result</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
|
291
293
|
<span class='ivar'>@kept</span> <span class='op'>=</span> <span class='const'>String</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='label'>encoding:</span> <span class='const'>Encoding</span><span class='op'>::</span><span class='const'>BINARY</span><span class='rparen'>)</span>
|
|
@@ -329,10 +331,6 @@ headers before its first chunk.</p>
|
|
|
329
331
|
<pre class="lines">
|
|
330
332
|
|
|
331
333
|
|
|
332
|
-
232
|
|
333
|
-
233
|
|
334
|
-
234
|
|
335
|
-
235
|
|
336
334
|
236
|
|
337
335
|
237
|
|
338
336
|
238
|
|
@@ -344,10 +342,15 @@ headers before its first chunk.</p>
|
|
|
344
342
|
244
|
|
345
343
|
245
|
|
346
344
|
246
|
|
347
|
-
247
|
|
345
|
+
247
|
|
346
|
+
248
|
|
347
|
+
249
|
|
348
|
+
250
|
|
349
|
+
251
|
|
350
|
+
252</pre>
|
|
348
351
|
</td>
|
|
349
352
|
<td>
|
|
350
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/http_transport.rb', line
|
|
353
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/http_transport.rb', line 236</span>
|
|
351
354
|
|
|
352
355
|
<span class='kw'>def</span> <span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_chunk'>chunk</span><span class='comma'>,</span> <span class='id identifier rubyid__received'>_received</span><span class='comma'>,</span> <span class='id identifier rubyid_env'>env</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
353
356
|
<span class='kw'>unless</span> <span class='ivar'>@streamed</span>
|
|
@@ -360,6 +363,7 @@ headers before its first chunk.</p>
|
|
|
360
363
|
<span class='kw'>if</span> <span class='ivar'>@fiber</span>
|
|
361
364
|
<span class='ivar'>@fiber</span><span class='period'>.</span><span class='id identifier rubyid_resume'>resume</span><span class='lparen'>(</span><span class='id identifier rubyid_chunk'>chunk</span><span class='period'>.</span><span class='id identifier rubyid_b'>b</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='ivar'>@fiber</span><span class='period'>.</span><span class='id identifier rubyid_alive?'>alive?</span> <span class='op'>&&</span> <span class='op'>!</span><span class='id identifier rubyid_chunk'>chunk</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
|
|
362
365
|
<span class='kw'>else</span>
|
|
366
|
+
<span class='ivar'>@on_error_chunk</span><span class='op'>&.</span><span class='id identifier rubyid_call'>call</span>
|
|
363
367
|
<span class='id identifier rubyid_room'>room</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../HttpTransport.html" title="Files::Transfer::HttpTransport (class)">HttpTransport</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../HttpTransport.html#ERROR_BODY_BYTES-constant" title="Files::Transfer::HttpTransport::ERROR_BODY_BYTES (constant)">ERROR_BODY_BYTES</a></span></span> <span class='op'>-</span> <span class='ivar'>@kept</span><span class='period'>.</span><span class='id identifier rubyid_bytesize'>bytesize</span>
|
|
364
368
|
<span class='ivar'>@truncated</span> <span class='op'>||=</span> <span class='id identifier rubyid_chunk'>chunk</span><span class='period'>.</span><span class='id identifier rubyid_bytesize'>bytesize</span> <span class='op'>></span> <span class='id identifier rubyid_room'>room</span>
|
|
365
369
|
<span class='ivar'>@kept</span> <span class='op'><<</span> <span class='id identifier rubyid_chunk'>chunk</span><span class='period'>.</span><span class='id identifier rubyid_b'>b</span><span class='period'>.</span><span class='id identifier rubyid_byteslice'>byteslice</span><span class='lparen'>(</span><span class='int'>0</span><span class='comma'>,</span> <span class='id identifier rubyid_room'>room</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_room'>room</span><span class='period'>.</span><span class='id identifier rubyid_positive?'>positive?</span>
|
|
@@ -394,13 +398,13 @@ headers before its first chunk.</p>
|
|
|
394
398
|
<pre class="lines">
|
|
395
399
|
|
|
396
400
|
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
+
255
|
|
402
|
+
256
|
|
403
|
+
257
|
|
404
|
+
258</pre>
|
|
401
405
|
</td>
|
|
402
406
|
<td>
|
|
403
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/http_transport.rb', line
|
|
407
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/http_transport.rb', line 255</span>
|
|
404
408
|
|
|
405
409
|
<span class='kw'>def</span> <span class='id identifier rubyid_result'>result</span>
|
|
406
410
|
<span class='ivar'>@fiber</span><span class='period'>.</span><span class='id identifier rubyid_resume'>resume</span><span class='lparen'>(</span><span class='kw'>nil</span><span class='rparen'>)</span> <span class='kw'>while</span> <span class='ivar'>@fiber</span><span class='op'>&.</span><span class='id identifier rubyid_alive?'>alive?</span>
|
|
@@ -448,12 +452,12 @@ headers before its first chunk.</p>
|
|
|
448
452
|
<pre class="lines">
|
|
449
453
|
|
|
450
454
|
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
455
|
+
225
|
|
456
|
+
226
|
|
457
|
+
227</pre>
|
|
454
458
|
</td>
|
|
455
459
|
<td>
|
|
456
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/http_transport.rb', line
|
|
460
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/http_transport.rb', line 225</span>
|
|
457
461
|
|
|
458
462
|
<span class='kw'>def</span> <span class='id identifier rubyid_streamed?'>streamed?</span>
|
|
459
463
|
<span class='ivar'>@streamed</span>
|
|
@@ -500,12 +504,12 @@ headers before its first chunk.</p>
|
|
|
500
504
|
<pre class="lines">
|
|
501
505
|
|
|
502
506
|
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
507
|
+
230
|
|
508
|
+
231
|
|
509
|
+
232</pre>
|
|
506
510
|
</td>
|
|
507
511
|
<td>
|
|
508
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/http_transport.rb', line
|
|
512
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/http_transport.rb', line 230</span>
|
|
509
513
|
|
|
510
514
|
<span class='kw'>def</span> <span class='id identifier rubyid_truncated?'>truncated?</span>
|
|
511
515
|
<span class='ivar'>@truncated</span>
|
|
@@ -520,7 +524,7 @@ headers before its first chunk.</p>
|
|
|
520
524
|
</div>
|
|
521
525
|
|
|
522
526
|
<div id="footer">
|
|
523
|
-
Generated on
|
|
527
|
+
Generated on Sat Nov 14 22:52:43 2026 by
|
|
524
528
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
525
529
|
0.9.45 (ruby-4.0.9).
|
|
526
530
|
</div>
|