Skip to content

[#8] 클라이언트 설정과 네트워크 프로토콜을 구현한다#15

Merged
opficdev merged 8 commits into
developfrom
feat/#8-Client
Apr 13, 2026
Merged

[#8] 클라이언트 설정과 네트워크 프로토콜을 구현한다#15
opficdev merged 8 commits into
developfrom
feat/#8-Client

Conversation

@opficdev
Copy link
Copy Markdown
Owner

@opficdev opficdev commented Apr 13, 2026

🔗 연관된 이슈

📝 작업 내용

📌 요약

  • 클라이언트 설정과 네트워크 프로토콜 구현
  • 해당 범위 테스트(NXClientConfigurationProtocolTests) 추가

🔍 상세

  • 프로토콜 구현
    • NXHTTPTransport
    • NXAuthTokenProvider
    • NXServerErrorDecoder
    • NXDefaultServerErrorDecoder
  • 전송 구현
    • NXURLSessionTransport 추가
  • 클라이언트 설정 구현
    • NXClientConfiguration 추가
    • baseURL, headers, transport, decoder, encoder, serverErrorDecoder, authTokenProvider 구성
  • 테스트 추가
    • NXClientConfigurationProtocolTests 추가
    • 기본/주입 의존성 저장 동작 및 기본 서버 에러 디코더 동작 검증
  • 검증
    • swift test 통과

📸 영상 / 이미지 (Optional)

image

@opficdev opficdev self-assigned this Apr 13, 2026
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

이번 PR은 Nexa 라이브러리의 핵심 설정인 NXClientConfiguration과 네트워크 통신을 위한 NXHTTPTransport 등의 프로토콜 및 기본 구현체를 추가합니다. 리뷰 결과, NXClientConfiguration 내 JSONDecoder와 JSONEncoder의 Sendable 준수 여부 확인 및 불변성 확보를 위한 let 선언 권장 사항이 있었으며, NXURLSessionTransport에서 불필요한 @unchecked Sendable을 제거하여 컴파일러의 안전성 검사를 활용하도록 하는 개선 제안이 포함되었습니다.

Comment thread Nexa/Sources/Nexa/Core/NXClientConfiguration.swift Outdated
Comment thread Nexa/Sources/Nexa/Runtime/NXURLSessionTransport.swift Outdated
@opficdev opficdev changed the title Feat/#8 client [#8] 클라이언트 설정과 네트워크 프로토콜을 구현한다 Apr 13, 2026
@opficdev opficdev merged commit 16b7d72 into develop Apr 13, 2026
4 checks passed
@opficdev opficdev deleted the feat/#8-Client branch April 13, 2026 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

클라이언트 설정과 네트워크 프로토콜을 구현한다

1 participant