WebGetAcceptTypes Function

Action

Gets the current values of HTTP/HTTPS accept types.

Include file

WebAPI.bdh

Syntax

WebGetAcceptTypes( out sAccept : string,
                   in  nMaxLen : number optional ): boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
sAccept A string buffer that will receive the current list of AcceptTypes.
nMaxLen The maximum length of the receive buffer sAccept (optional).

Example

dcltrans
  transaction TWebInit
  var
    sAccept: string;
  begin
    WebGetAcceptTypes(sAccept);
    write("HttpAccept: "); write(sAccept); writeln;
  end TWebInit;