Introduce HttpResponse callback selector type. to resolve #2365
Changes samples' function prototypes to apply newly introduced callback type.
Merge pull request #2490 from coolengineer/pull-request-httpclient

fixed #2119: Introduce HttpResponse callback selector type to resolve #2365, fixed version ;-)