-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split up HBRequestContext from HBRequest #240
Conversation
Can't wait to try this out @Joannis 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good in general. Couple of question surrounding why a couple of things are still in HBRequest and not the HBRequestContext.
|
||
/// Request ID (Uses ID attached to loggger to avoid replication) | ||
public var id: String { self.logger[metadataKey: "hb_id"]!.description } | ||
public let id: String |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this something we can move to context as well? I was kind of hoping we could ditch HBRequest
for HBHTTPRequest
. The ID was something you asked for initially what was the intention for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact the id is stored in both request and context at the moment
self.uri = uri | ||
self.version = version | ||
self.method = method | ||
self.headers = headers | ||
self.applicationContext = applicationContext | ||
self.context = context | ||
self.endpointPath = .init(endpointPath) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to id any reason we can't move endpointPath to the context as well
Codecov ReportAttention:
📢 Thoughts on this report? Let us know!. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.