Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔗 연관된 이슈
📝 작업 내용
📌 요약
Sources/Nexa,Tests/NexaTests,Examples/NexaClient/NexaClient평탄화NXRetryPolicy구성 경로 제거 및 매개변수 기반.retry(...)제공NXRetryPolicy내부 구현과RequestSpec.retryPolicy연결 유지.retry()의maxAttempts기본값3제공🔍 상세
NXRetryBackoff,NXRetryJitter와 매개변수 기반.retry(...)제공RequestSpec.retryPolicy와NXRetryInterceptor에서NXRetryPolicy유지GET → POST,GET → PATCH,POST → GET변경 시 transport 이전NXError.invalidRequest종료retry → auth → global interceptor → request interceptor → logger → cache → transport유지📸 영상 / 이미지 (Optional)
flowchart LR client["NXAPIClient"] --> builder["NXRequestBuilder"] builder -. 기존 .-> oldRetry[".retry(_:)"] oldRetry -. 기존 .-> oldPolicy["공개 NXRetryPolicy<br/>init · Backoff · Jitter"] oldPolicy -. 기존 .-> spec["RequestSpec"] builder --> parameters[".retry()<br/>maxAttempts 기본값 3"] parameters --> policy["내부 NXRetryPolicy"] policy --> spec spec -. 기존: guard 없음 .-> interceptors["interceptors<br/>retry → auth → global → request → logger → cache"] spec --> proceed["proceed<br/>method guard"] proceed -->|다음 interceptor| interceptors interceptors -->|next 전달| proceed proceed -->|마지막 interceptor 이후| transport["transport"] proceed -->|method 불일치| invalid["NXError.invalidRequest"]