You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.
Hi, I registered a custom scheme which refer to the TFileScheme. and I post a request which has headers, body, now I can get the headers of request, but I cannot get body of request because of ICefRequest.PostData always return nil.
here is my code:
mydpr.dpr;
...
begin
...
CefRegisterSchemeHandlerFactory('native', '', TWebNativeScheme);
...
end.
unit WebNativeScheme;
...
TWebNativeScheme = class(TCefResourceHandlerOwn)
private
FFrame: ICefFrame;
FBrowser: ICefBrowser;
FResponse: IWebResponse;
FResponseStream: TMemoryStream;
protected
// in this method, request.postData always is nil.
function ProcessRequest(const request: ICefRequest;
const callback: ICefCallback): Boolean; override;
...
public
constructor Create(const browser: ICefBrowser; const frame: ICefFrame;
const schemeName: ustring; const request: ICefRequest); override;
destructor Destroy; override;
end;
....
Hi, I registered a custom scheme which refer to the TFileScheme. and I post a request which has headers, body, now I can get the headers of request, but I cannot get body of request because of ICefRequest.PostData always return nil.
here is my code:
myhtml.html:
Please tell me this is my code wrong, or CEF itself. Thanks.
The text was updated successfully, but these errors were encountered: