GoogleRidesharingConsumer Framework Reference
    
    
      
    
    
      
      Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
    
      
        
          
            
              
            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 GMTSRequestHeaderis 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-08-27 UTC.
  
  
  
    
      [null,null,["Last updated 2025-08-27 UTC."],[],["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"]]