UserAgentGenerator
class UserAgentGenerator
Methods
__construct(string $sdkName, string $sdkVersion)
UserAgentGenerator constructor.
$this
setApplication(string|null $name, string|null $version = null)
Set the application name and version. The values are used as part of the X-Contentful-User-Agent header.
$this
setIntegration(string|null $name, string|null $version = null)
Set the application name and version. The values are used as part of the X-Contentful-User-Agent header.
string
getUserAgent()
Returns the value of the User-Agent header for any requests made to Contentful.
Details
at line 55
__construct(string $sdkName, string $sdkVersion)
UserAgentGenerator constructor.
at line 69
$this
setApplication(string|null $name, string|null $version = null)
Set the application name and version. The values are used as part of the X-Contentful-User-Agent header.
at line 88
$this
setIntegration(string|null $name, string|null $version = null)
Set the application name and version. The values are used as part of the X-Contentful-User-Agent header.
at line 144
string
getUserAgent()
Returns the value of the User-Agent header for any requests made to Contentful.