Building42 / Telegraph

Secure Web Server for iOS, tvOS and macOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add remote/local endpoint information into HTTP request routing handlers

Alkenso opened this issue · comments

In some situations it is very handy have the ability to get information about the client when processing the HTTP request

Please add forwarding of HTTPConnection's local/remote endpoints into HTTPRequest or handlers that handles requests

Thanks, good suggestion 👍

This would require quite a bit of refactoring. Unfortunately I'm no longer using Telegraph in my day-to-day work, making it difficult to find time to make improvements to the library.

Probably the next big thing to do is to remove CocoaAsyncSocket and use the Networking library that Apple introduced with iOS 12. That will already have some impact on the classes that you've mentioned. During that refactor more of the internals could the exposed to provide more information in routes and handlers.

Thank for your response. I would be glad to hear one day that Telegraph got so incredible update!