WebSetAcceptTypes Function

Action

Sets the HTTP/HTTPS accept types.

Include file

WebAPI.bdh

Syntax

WebSetAcceptTypes(in sAccept: string): boolean;

Return value

  • true if successful
  • false otherwise
Parameter Description
sAccept Contains the accept pattern string, for example, "*/*", "image/gif"

Example

dcltrans
transaction TWebInit
begin
  WebSetAcceptTypes("text/html, image/gif");
  WebDumpSettings();
end TWebInit;