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

Remove "HB" prefix #395

Merged
merged 11 commits into from Mar 11, 2024
Merged

Remove "HB" prefix #395

merged 11 commits into from Mar 11, 2024

Conversation

adam-fowler
Copy link
Member

@adam-fowler adam-fowler commented Mar 9, 2024

Also renamed some symbols to avoid clashes

  • Responder -> HTTPResponder
  • ResponderBuilder -> HTTPResponderBuilder
  • ChildChannel -> ServerChildChannel
  • MiddlewareProtocol -> RouterMiddleware
  • URL -> URI
  • Client -> ClientConnection

@adam-fowler adam-fowler requested a review from Joannis March 9, 2024 08:21
@Joannis
Copy link
Contributor

Joannis commented Mar 9, 2024

I'd prefer "HTTPResponder" over "RequestResponder"

@adam-fowler
Copy link
Member Author

I'd prefer "HTTPResponder" over "RequestResponder"

I'm happy to go with that. Was just looking for something a little less generic that Responder

@adam-fowler
Copy link
Member Author

I'd prefer "HTTPResponder" over "RequestResponder"

I'm happy to go with that. Was just looking for something a little less generic that Responder

@Joannis and done!

Copy link
Contributor

@MahdiBM MahdiBM left a comment

Choose a reason for hiding this comment

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

Looks like an improvement overall although has the downside of a bit being less clear.

I'd put some @available(*, unavailable/deprecated, renamed: "NewName") typealias OldName = NewNames to make it easier to migrate to these new names for the beta testers. Should be easy for us to do but will mitigate a ton of hassle considering Xcode freaks out after encountering a number of errors (i've noticed VSCode does properly show all the numerous errors in these situations, that's why i'm blaming Xcode specifically.)

@Joannis
Copy link
Contributor

Joannis commented Mar 9, 2024

I agree with @MahdiBM 's remark here. We'd remove that in the next beta or on release, but I think it's a good idea for sure.

Copy link
Contributor

@Joannis Joannis left a comment

Choose a reason for hiding this comment

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

Approved, but I think we should still consider Mahdi's remark

@adam-fowler
Copy link
Member Author

I'd put some @available(*, unavailable/deprecated, renamed: "NewName") typealias OldName = NewNames to make it easier to migrate to these new names for the beta testers.

I've implemented this and it works quite well, cheers

@tib
Copy link
Contributor

tib commented Mar 10, 2024

Quick question / suggestion: how about renaming application to server? 🤔

@adam-fowler
Copy link
Member Author

Quick question / suggestion: how about renaming application to server?

We are already using Server for the actual server. Application is the server plus glue code that connects it to the router, any additional services attached and the date cache. I'm not enamoured with the name Application either, but can't think of an alternative I'm happy with.

@tib
Copy link
Contributor

tib commented Mar 10, 2024

Quick question / suggestion: how about renaming application to server?

We are already using Server for the actual server. Application is the server plus glue code that connects it to the router, any additional services attached and the date cache. I'm not enamoured with the name Application either, but can't think of an alternative I'm happy with.

Is that underlying server the HTTPServer? Maybe we could differentiate that layer by using the HTTP prefix there and simply use Server for HBApp? 🤔

@adam-fowler
Copy link
Member Author

Server is a generic type with a generic parameter ChildChannel that defines the protocol the server supports. It be could HTTP1.1 but doesn't have to be. So calling it HTTPServer doesn't make sense.

@tib
Copy link
Contributor

tib commented Mar 10, 2024

I see, how about (Generic)NIOServer or something related to network? 🤔

@adam-fowler adam-fowler merged commit 5dbdee8 into main Mar 11, 2024
4 of 5 checks passed
@adam-fowler adam-fowler deleted the remove-hb-prefix branch March 11, 2024 08:58
@adam-fowler
Copy link
Member Author

I see, how about (Generic)NIOServer or something related to network? 🤔

Sorry Tibor we've decided to stick with Application. It reflect prior art and the symbol Server is already used in a more applicable situation

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.

None yet

4 participants