Unit 'HTTPDefs' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

THTTPHeader.ParseContentType

Parses a content type header value

Declaration

Source position: httpdefs.pp line 395

public class function THTTPHeader.ParseContentType(

  const AContentType: string;

  Parameters: TStrings

):string;

Arguments

AContentType

  

Content type string to parse

Parameters

  

String list to receive content type parameters

Function result

Main content type without parameters

Description

ParseContentType analyzes a Content-Type header value and extracts the main type and parameters. This utility method helps process content type information from HTTP headers.


Documentation generated on: Jan 16 2026