Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
Status response filter
Status response filter
Hi Salvadordf. I just can’t figure out how to implement a status response in the response filter. I need any responses returned (200, 404, timeout, etc.)
- salvadordf
- Posts: 4155
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Status response filter
Hi,
The ResponseFilterBrowser demo uses a TCustomResponseFilter instance to filter the contents but it doesn't have any status :
https://github.com/salvadordf/CEF4Delphi/blob/master/source/uCEFResponseFilter.pas
The SchemeRegistrationBrowser demo however handles the status in THelloScheme.ProcessRequest.
https://github.com/salvadordf/CEF4Delphi/blob/7c230b9d70b9bb47c334eb438c5be4f7d70bf576/demos/Delphi_VCL/SchemeRegistrationBrowser/uHelloScheme.pas#L82
The ResponseFilterBrowser demo uses a TCustomResponseFilter instance to filter the contents but it doesn't have any status :
https://github.com/salvadordf/CEF4Delphi/blob/master/source/uCEFResponseFilter.pas
The SchemeRegistrationBrowser demo however handles the status in THelloScheme.ProcessRequest.
https://github.com/salvadordf/CEF4Delphi/blob/7c230b9d70b9bb47c334eb438c5be4f7d70bf576/demos/Delphi_VCL/SchemeRegistrationBrowser/uHelloScheme.pas#L82