Sign in Join
FPDoc Onlineexperiment

THTTPHeader.ParseContentType function

Member of THTTPHeaderpublicIn unit HTTPDefs

Parses a content type header value

Declaration

pascal
class function 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.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.