GoogleRidesharingConsumer Framework Reference
A request header object contains common fields for a request.
-
Generates and returns a default header object.
Declaration
Swift
class func `default`() -> Self
Objective-C
+ (nonnull instancetype)defaultHeader;
-
Initialize an instance of GMTSRequestHeader
is unavailable, Use +defaultHeader:
to get an
instance.
Declaration
Objective-C
- (nonnull instancetype)init;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-21 UTC.
[null,null,["Last updated 2025-01-21 UTC."],[[["`GMTSRequestHeader` is a request header object containing common fields for a request."],["The `defaultHeader` class method generates and returns a default header object."],["Initializing an instance of `GMTSRequestHeader` directly using `-init` is unavailable; the `+defaultHeader` method should be used instead."]]],["The `GMTSRequestHeader` class provides a structure for request headers. It offers a class method, `defaultHeader`, to generate and return a pre-configured header object. Direct initialization of `GMTSRequestHeader` instances using `init` is unavailable; users must utilize `defaultHeader` to obtain an instance. The class is derived from `GMTCImmutableData`, and the header includes common fields necessary for a request.\n"]]