Skip to content
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

Add http-core package #430

Merged
merged 29 commits into from
Feb 23, 2025
Merged

Conversation

Adrianmjim
Copy link
Member

Added

  • Create http-core package
  • Add http-core basic models
  • Add http-core request method decoratos
  • Add http-core controller decorator
  • Add http-core request param decorators
  • Add InversifyHttpAdapter

@Adrianmjim Adrianmjim marked this pull request as draft February 21, 2025 12:48
Copy link
Member

@notaphplover notaphplover left a comment

Choose a reason for hiding this comment

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

It looks nice! I really like the abstraction. I added some minor details to polish.

case RequestMethodParameterType.NEXT: {
return next;
}
case RequestMethodParameterType.PRINCIPAL: {
Copy link
Member

Choose a reason for hiding this comment

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

I'm curious about this :)

Copy link
Member Author

Choose a reason for hiding this comment

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

This functionality returns the user from the request in the current library. We currently do not have an authentication service, which is why it is disabled.

Anyways, if we enable authentication services, do we want to keep this functionality with the same name and usage? I'm not sure.

Copy link
Member

@notaphplover notaphplover left a comment

Choose a reason for hiding this comment

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

It looks great, let's fix CI issues and I think we can merge

@Adrianmjim Adrianmjim changed the title [WIP] Add http-core package Add http-core package Feb 23, 2025
@Adrianmjim Adrianmjim marked this pull request as ready for review February 23, 2025 13:05
@notaphplover notaphplover merged commit 11dd25d into inversify:main Feb 23, 2025
5 checks passed
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.

2 participants