Introduced NativeHttpReceiver as a new implementation of `INativeIn… - #132
Conversation
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughA new HTTP receiver component is introduced for the native adapters system. The implementation adds Changes
Sequence Diagram(s)sequenceDiagram
actor Client
participant NativeHttpReceiver
participant IDynamicHttpProxy
participant HttpClient
participant RemoteAPI as Remote HTTP API
Client->>NativeHttpReceiver: ListFiles()
NativeHttpReceiver->>NativeHttpReceiver: Authenticate (if configured)
alt Authentication Mode
NativeHttpReceiver->>IDynamicHttpProxy: Create HttpClient
IDynamicHttpProxy->>HttpClient: Return configured client
NativeHttpReceiver->>RemoteAPI: POST /login (if Login mode)
RemoteAPI-->>NativeHttpReceiver: Token/credentials
NativeHttpReceiver->>NativeHttpReceiver: Set Authorization header
end
NativeHttpReceiver->>NativeHttpReceiver: Build HttpRequestMessage
NativeHttpReceiver->>HttpClient: SendAsync(request)
HttpClient->>RemoteAPI: HTTP request
RemoteAPI-->>HttpClient: HTTP response + JSON body
HttpClient-->>NativeHttpReceiver: Response
NativeHttpReceiver->>NativeHttpReceiver: Validate status code
NativeHttpReceiver->>NativeHttpReceiver: Parse JSON response
NativeHttpReceiver->>NativeHttpReceiver: Extract items (array path or whole response)
NativeHttpReceiver-->>Client: Item IDs (string collection)
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…folinkReceiver`
Summary by CodeRabbit