Skip to content

THTTPHeader.ParseContentType

Parses a content type header value

Declaration

Source position: httpdefs.pp line 407

public 
class function THTTPHeader.ParseContentType(const AContentType: string; 
                                           Parameters: TStrings)
                                            : string;

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.