Telegraph icon indicating copy to clipboard operation
Telegraph copied to clipboard

Add remote/local endpoint information into HTTP request routing handlers

Open Alkenso opened this issue 3 years ago • 2 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

Alkenso avatar May 11 '22 15:05 Alkenso

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.

yvbeek avatar Aug 13 '22 04:08 yvbeek

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

Alkenso avatar Aug 13 '22 07:08 Alkenso