package Ġio . envoy proxy . envoy mobile Ċ Ċ internal Ġfun ĠRequest . outbound Headers (): ĠMap < String , ĠList < String >> Ġ{ ĊĠ Ġval Ġretry Policy Headers Ġ= Ġretry Policy ?. outbound Headers () Ġ?: Ġempty Map () ĊĊĠ Ġval Ġresult Ġ= Ġmutable Map Of < String , ĠList < String >>() ĊĠ Ġresult . put All ( headers . filter Ġ{ Ġentry Ġ-> ĊĠĠĠ Ġ! entry . key . startsWith (": ") Ġ&& Ġ! entry . key . startsWith (" x - envoy - mobile ") ĊĠ Ġ}) ĊĠ Ġresult . put All ( retry Policy Headers ) ĊĠ Ġresult [ ": method "] Ġ= ĠlistOf ( method . stringValue ) ĊĠ Ġresult [ ": scheme "] Ġ= ĠlistOf ( scheme ) ĊĠ Ġresult [ ": authority "] Ġ= ĠlistOf ( authority ) ĊĠ Ġresult [ ": path "] Ġ= ĠlistOf ( path ) ĊĊĠ Ġif Ġ( upstream Http Protocol Ġ!= Ġnull ) Ġ{ ĊĠĠĠ Ġresult [" x - envoy - mobile - upstream - protocol "] Ġ= ĠlistOf ( upstream Http Protocol . stringValue ) ĊĠ Ġ} ĊĊĠ Ġreturn Ġresult Ċ } Ċ