MessageHeaders.getContentType

Looks up the "Content-Type" header in @hdrs, parses it, and returns its value in *@content_type and *@params. @params can be %NULL if you are only interested in the content type itself.

class MessageHeaders
string
getContentType
(
out HashTable params
)

Parameters

params HashTable

return location for the Content-Type parameters (eg, "charset"), or %NULL

Return Value

Type: string

a string with the value of the "Content-Type" header or %NULL if @hdrs does not contain that header or it cannot be parsed (in which case *@params will be unchanged).

Meta

Since

2.26