GAEPHP7 Standard Environmentのリクエストヘッダーまとめ

Google AppEngine PHP7.2スタンダード環境でリクエストヘッダーは
AppEngineフロントエンドからインスタンスに処理を流す際に[公式ドキュメント](https://cloud.google.com/appengine/docs/standard/php7/reference/request-response-headers?hl=ja)に記載されている
固有のリクエストヘッダーが追加されるが
![image05.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/40799/68012e62-67ee-0ee6-3005-a2aa5d4d465f.png)
画像引用: GAEのスケーリング　前編　＜仕組みについて＞
https://www.apps-gcp.com/gae_scaling_01/


ドキュメント記載がない項目もちらほらみつかったので下記にまとめます

## `var_dump($_SERVER);` した結果

※ testというversionで $gcloud app deployしています
※ Google AppEngine PHP7.2スタンダード環境にてWordpress動作時

```php
["GAE_MEMORY_MB"]=> string(3) "512" 
["GAE_INSTANCE"]=> string(76) "00c61bXXXXXXXXXXXXX" 
["PORT"]=> string(4) "8081" 
["HOME"]=> string(8) "/var/www" 
["GAE_SERVICE"]=> string(7) "default" 
["PATH"]=> string(60) "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" 
["GAE_DEPLOYMENT_ID"]=> string(18) "42128578XXXXXX" 
["DEBIAN_FRONTEND"]=> string(14) "noninteractive" 
["GOOGLE_CLOUD_PROJECT"]=> string(7) "{PROJECT_ID}" 
["GAE_ENV"]=> string(8) "standard" 
["PWD"]=> string(4) "/srv" 
["GAE_APPLICATION"]=> string(9) "b~{PROJECT_ID}" 
["GAE_RUNTIME"]=> string(5) "php72" 
["GAE_VERSION"]=> string(4) "test" 
["USER"]=> string(8) "www-data" 
["HTTP_X_APPENGINE_DEFAULT_VERSION_HOSTNAME"]=> string(19) "{PROJECT_ID}.appspot.com" 
["HTTP_X_APPENGINE_REQUEST_LOG_ID"]=> string(66) "5d8b54080XXXXXXXXXXXX" 
["HTTP_ACCEPT_ENCODING"]=> string(17) "gzip, deflate, br" 
["HTTP_FORWARDED"]=> string(55) "for="{接続元IP}";proto=https" 
["HTTP_X_FORWARDED_PROTO"]=> string(5) "https" 
["HTTP_X_FORWARDED_FOR"]=> string(37) "{接続元IP}" 
["HTTP_X_APPENGINE_USER_IP"]=> string(37) "{接続元IP}" 
["HTTP_X_APPENGINE_HTTPS"]=> string(2) "on" 
["HTTP_X_APPENGINE_CITY"]=> string(11) "XXXXX city" 
["HTTP_X_APPENGINE_COUNTRY"]=> string(2) "JP" 
["HTTP_X_APPENGINE_REGION"]=> string(2) "13" 
["HTTP_X_APPENGINE_CITYLATLONG"]=> string(20) "35.658581,139.745433" // 経度・緯度
["HTTP_COOKIE"]=> string(223) "XXXXXXXXXX" 
["HTTP_X_CLOUD_TRACE_CONTEXT"]=> string(57) "a1b51e6794XXXXXXXXXX;o=1" 
["HTTP_ACCEPT_LANGUAGE"]=> string(23) "ja,en-US;q=0.9,en;q=0.8" 
["HTTP_SEC_FETCH_SITE"]=> string(4) "none" 
["HTTP_ACCEPT"]=> string(118) "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3" 
["HTTP_SEC_FETCH_USER"]=> string(2) "?1" 
["HTTP_SEC_FETCH_MODE"]=> string(8) "navigate" 
["HTTP_USER_AGENT"]=> string(121) "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36" 
["HTTP_UPGRADE_INSECURE_REQUESTS"]=> string(1) "1" 
["HTTP_HOST"]=> string(28) "test-dot-{PROJECT_ID}.appspot.com" 
["SERVER_NAME"]=> string(0) "" 
["SERVER_PORT"]=> string(4) "8080" 
["SERVER_ADDR"]=> string(11) "192.168.1.1" 
["REMOTE_USER"]=> string(0) "" 
["REMOTE_HOST"]=> string(11) "XXXXX" 
["REMOTE_PORT"]=> string(5) "20095" 
["REMOTE_ADDR"]=> string(11) "XXXXX" 
["GATEWAY_INTERFACE"]=> string(7) "CGI/1.1" 
["HTTPS"]=> string(2) "on" 
["REQUEST_SCHEME"]=> string(4) "http" 
["SERVER_PROTOCOL"]=> string(8) "HTTP/1.1" 
["DOCUMENT_ROOT"]=> string(4) "/srv" 
["DOCUMENT_URI"]=> string(25) "/XXXXX.php" 
["REQUEST_URI"]=> string(13) "/XXXXX.php" 
["PATH_INFO"]=> string(0) "" 
["SCRIPT_FILENAME"]=> string(16) "/srv/gae-app.php" 
["SCRIPT_NAME"]=> string(25) "/gae-app.php/XXXXX.php" 
["CONTENT_LENGTH"]=> string(0) "" 
["CONTENT_TYPE"]=> string(0) "" 
["REQUEST_METHOD"]=> string(3) "GET" 
["QUERY_STRING"]=> string(0) "" 
["FCGI_ROLE"]=> string(9) "RESPONDER" 
["PHP_SELF"]=> string(25) "/gae-app.php/XXXXX.php" 
["REQUEST_TIME_FLOAT"]=> float(1569412105.614) 
["REQUEST_TIME"]=> int(1569412105) 
["argv"]=> array(0) { } 
["argc"]=> int(0) 
```

## さいごに
Google AppEngine PHP7.2スタンダード環境の事例が少ないからもっと情報ほしい...!!