Skip to content

fphttpclient allow to override supported protocol prefix with a subclass

Summary

Allow custom protocol prefix e.g. ws or wss to be used in a subclass of TfpCustomHttpClient by overriding a procedure. Useful to leverage the existing implementation, response codes, errors, redirects etc to a custom websocket client subclass.

What is the current bug behavior?

No bug, but using ws://test.com or wss://test.com results in an unsupported protocol error and there is not a way to change the hardcoded values 'http' and 'https'

What is the behavior after applying this patch?

There is no change in behavior for existing projects.

Merge request reports