Client Test

Client Test

rev. ee474c7509d7728618c23068f3741e8e5b339ef9 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-client-test/Cargo.lock

@@ -276,276 +806,826 @@
  296    296   
checksum = "b45afffdee1e7c9126814751f88dddc747f41d91da16c9551a0f1e8a11e788a1"
  297    297   
dependencies = [
  298    298   
 "cc",
  299    299   
 "cmake",
  300    300   
 "dunce",
  301    301   
 "fs_extra",
  302    302   
]
  303    303   
  304    304   
[[package]]
  305    305   
name = "aws-smithy-async"
  306         -
version = "1.2.7"
         306  +
version = "1.2.8"
  307    307   
dependencies = [
  308    308   
 "futures-util",
  309    309   
 "pin-project-lite",
  310    310   
 "pin-utils",
  311    311   
 "tokio",
  312    312   
 "tokio-test",
  313    313   
]
  314    314   
  315    315   
[[package]]
  316    316   
name = "aws-smithy-cbor"
  317    317   
version = "0.61.4"
  318    318   
dependencies = [
  319    319   
 "aws-smithy-types",
  320    320   
 "criterion",
  321    321   
 "minicbor",
  322    322   
]
  323    323   
  324    324   
[[package]]
  325    325   
name = "aws-smithy-checksums"
  326         -
version = "0.63.13"
         326  +
version = "0.64.0"
  327    327   
dependencies = [
  328    328   
 "aws-smithy-http",
  329    329   
 "aws-smithy-types",
  330    330   
 "bytes",
  331    331   
 "bytes-utils",
  332    332   
 "crc-fast",
  333    333   
 "hex",
  334         -
 "http 0.2.12",
  335         -
 "http-body 0.4.6",
         334  +
 "http 1.4.0",
         335  +
 "http-body 1.0.1",
         336  +
 "http-body-util",
  336    337   
 "md-5",
  337    338   
 "pin-project-lite",
  338    339   
 "pretty_assertions",
  339    340   
 "sha1",
  340    341   
 "sha2",
  341    342   
 "tokio",
  342    343   
 "tracing",
  343    344   
 "tracing-test",
  344    345   
]
  345    346   
  346    347   
[[package]]
  347    348   
name = "aws-smithy-compression"
  348         -
version = "0.0.7"
         349  +
version = "0.0.8"
  349    350   
dependencies = [
  350    351   
 "aws-smithy-runtime-api",
  351    352   
 "aws-smithy-types",
  352    353   
 "bytes",
  353    354   
 "bytes-utils",
  354    355   
 "flate2",
  355    356   
 "futures-util",
  356         -
 "http 0.2.12",
  357    357   
 "http 1.4.0",
  358         -
 "http-body 0.4.6",
  359    358   
 "http-body 1.0.1",
  360    359   
 "http-body-util",
  361    360   
 "pin-project-lite",
  362    361   
 "pretty_assertions",
  363    362   
 "tokio",
  364    363   
 "tracing",
  365    364   
]
  366    365   
  367    366   
[[package]]
  368    367   
name = "aws-smithy-dns"
  369         -
version = "0.1.5"
         368  +
version = "0.1.6"
  370    369   
dependencies = [
  371    370   
 "aws-smithy-runtime-api",
  372    371   
 "criterion",
  373    372   
 "hickory-resolver",
  374    373   
 "tokio",
  375    374   
]
  376    375   
  377    376   
[[package]]
  378    377   
name = "aws-smithy-eventstream"
  379         -
version = "0.60.14"
         378  +
version = "0.60.15"
  380    379   
dependencies = [
  381    380   
 "arbitrary",
  382    381   
 "aws-smithy-types",
  383    382   
 "bytes",
  384    383   
 "bytes-utils",
  385    384   
 "crc32fast",
  386    385   
 "criterion",
  387    386   
 "derive_arbitrary",
  388    387   
 "jemallocator",
  389    388   
 "mimalloc",
  390    389   
]
  391    390   
  392    391   
[[package]]
  393    392   
name = "aws-smithy-experimental"
  394    393   
version = "0.2.2"
  395    394   
  396    395   
[[package]]
  397    396   
name = "aws-smithy-http"
  398         -
version = "0.62.6"
         397  +
version = "0.63.0"
  399    398   
dependencies = [
  400    399   
 "async-stream",
  401    400   
 "aws-smithy-eventstream",
  402    401   
 "aws-smithy-runtime-api",
  403    402   
 "aws-smithy-types",
  404    403   
 "bytes",
  405    404   
 "bytes-utils",
  406    405   
 "futures-core",
  407    406   
 "futures-util",
  408         -
 "http 0.2.12",
  409    407   
 "http 1.4.0",
  410         -
 "http-body 0.4.6",
  411         -
 "hyper 0.14.32",
         408  +
 "http-body 1.0.1",
         409  +
 "http-body-util",
         410  +
 "hyper 1.8.1",
  412    411   
 "percent-encoding",
  413    412   
 "pin-project-lite",
  414    413   
 "pin-utils",
  415    414   
 "proptest",
  416    415   
 "tokio",
  417    416   
 "tracing",
  418    417   
]
  419    418   
  420    419   
[[package]]
  421    420   
name = "aws-smithy-http-client"
  422         -
version = "1.1.5"
         421  +
version = "1.1.6"
  423    422   
dependencies = [
  424    423   
 "aws-smithy-async",
  425    424   
 "aws-smithy-protocol-test",
  426    425   
 "aws-smithy-runtime-api",
  427    426   
 "aws-smithy-types",
  428    427   
 "base64 0.22.1",
  429    428   
 "bytes",
  430    429   
 "h2 0.3.27",
  431    430   
 "h2 0.4.13",
  432    431   
 "http 0.2.12",
  433    432   
 "http 1.4.0",
  434    433   
 "http-body 0.4.6",
  435    434   
 "http-body 1.0.1",
  436    435   
 "http-body-util",
  437    436   
 "hyper 0.14.32",
  438    437   
 "hyper 1.8.1",
  439    438   
 "hyper-rustls 0.24.2",
  440    439   
 "hyper-rustls 0.27.7",
  441    440   
 "hyper-util",
  442    441   
 "indexmap 2.13.0",
  443    442   
 "pin-project-lite",
  444    443   
 "rustls 0.21.12",
  445    444   
 "rustls 0.23.36",
  446    445   
 "rustls-native-certs 0.8.3",
  447    446   
 "rustls-pemfile 2.2.0",
  448    447   
 "rustls-pki-types",
  449    448   
 "s2n-tls",
  450    449   
 "s2n-tls-hyper",
  451    450   
 "s2n-tls-tokio",
  452    451   
 "serde",
  453    452   
 "serde_json",
  454    453   
 "serial_test",
  455    454   
 "tokio",
  456    455   
 "tokio-rustls 0.26.4",
  457    456   
 "tower 0.5.3",
  458    457   
 "tracing",
  459    458   
]
  460    459   
  461    460   
[[package]]
  462    461   
name = "aws-smithy-http-server"
  463         -
version = "0.65.10"
         462  +
version = "0.66.0"
  464    463   
dependencies = [
  465    464   
 "aws-smithy-cbor",
  466    465   
 "aws-smithy-http",
  467    466   
 "aws-smithy-json",
  468    467   
 "aws-smithy-runtime-api",
  469    468   
 "aws-smithy-types",
  470    469   
 "aws-smithy-xml",
  471    470   
 "bytes",
  472    471   
 "futures-util",
  473         -
 "http 0.2.12",
  474         -
 "http-body 0.4.6",
  475         -
 "hyper 0.14.32",
  476         -
 "lambda_http",
         472  +
 "http 1.4.0",
         473  +
 "http-body 1.0.1",
         474  +
 "http-body-util",
         475  +
 "hyper 1.8.1",
         476  +
 "hyper-util",
         477  +
 "lambda_http 1.0.1",
  477    478   
 "mime",
  478    479   
 "nom",
  479    480   
 "pin-project-lite",
  480    481   
 "pretty_assertions",
  481    482   
 "regex",
  482    483   
 "serde_urlencoded",
  483    484   
 "thiserror 2.0.17",
  484    485   
 "tokio",
  485    486   
 "tower 0.4.13",
  486         -
 "tower-http",
         487  +
 "tower-http 0.6.8",
  487    488   
 "tracing",
         489  +
 "tracing-subscriber",
  488    490   
 "uuid",
  489    491   
]
  490    492   
  491    493   
[[package]]
  492    494   
name = "aws-smithy-http-server-python"
  493         -
version = "0.66.6"
         495  +
version = "0.66.7"
  494    496   
dependencies = [
  495    497   
 "aws-smithy-http",
  496         -
 "aws-smithy-http-server",
  497    498   
 "aws-smithy-json",
         499  +
 "aws-smithy-legacy-http-server",
  498    500   
 "aws-smithy-types",
  499    501   
 "aws-smithy-xml",
  500    502   
 "bytes",
  501    503   
 "futures",
  502    504   
 "futures-util",
  503    505   
 "http 0.2.12",
  504    506   
 "hyper 0.14.32",
  505    507   
 "hyper-rustls 0.24.2",
  506         -
 "lambda_http",
         508  +
 "lambda_http 0.8.4",
  507    509   
 "num_cpus",
  508    510   
 "parking_lot",
  509    511   
 "pin-project-lite",
  510    512   
 "pretty_assertions",
  511    513   
 "pyo3",
  512    514   
 "pyo3-asyncio",
  513    515   
 "rcgen",
  514    516   
 "rustls-pemfile 1.0.4",
  515    517   
 "signal-hook",
  516    518   
 "socket2 0.5.10",
  517    519   
 "thiserror 2.0.17",
  518    520   
 "tls-listener",
  519    521   
 "tokio",
  520    522   
 "tokio-rustls 0.24.1",
  521    523   
 "tokio-stream",
  522    524   
 "tokio-test",
  523    525   
 "tower 0.4.13",
  524    526   
 "tower-test",
  525    527   
 "tracing",
  526    528   
 "tracing-appender",
  527    529   
 "tracing-subscriber",
  528    530   
]
  529    531   
  530    532   
[[package]]
  531    533   
name = "aws-smithy-json"
  532         -
version = "0.61.9"
         534  +
version = "0.62.0"
  533    535   
dependencies = [
  534    536   
 "aws-smithy-types",
  535    537   
 "proptest",
  536    538   
 "serde_json",
  537    539   
]
  538    540   
  539    541   
[[package]]
  540    542   
name = "aws-smithy-legacy-http"
  541         -
version = "0.62.6"
         543  +
version = "0.62.7"
  542    544   
dependencies = [
  543    545   
 "async-stream",
  544    546   
 "aws-smithy-eventstream",
  545    547   
 "aws-smithy-runtime-api",
  546    548   
 "aws-smithy-types",
  547    549   
 "bytes",
  548    550   
 "bytes-utils",
  549    551   
 "futures-core",
  550    552   
 "futures-util",
  551    553   
 "http 0.2.12",
  552    554   
 "http 1.4.0",
  553    555   
 "http-body 0.4.6",
  554    556   
 "hyper 0.14.32",
  555    557   
 "percent-encoding",
  556    558   
 "pin-project-lite",
  557    559   
 "pin-utils",
  558    560   
 "proptest",
  559    561   
 "tokio",
  560    562   
 "tracing",
  561    563   
]
  562    564   
  563    565   
[[package]]
  564    566   
name = "aws-smithy-legacy-http-server"
  565         -
version = "0.65.10"
         567  +
version = "0.65.11"
  566    568   
dependencies = [
  567    569   
 "aws-smithy-cbor",
  568    570   
 "aws-smithy-json",
  569    571   
 "aws-smithy-legacy-http",
  570    572   
 "aws-smithy-runtime-api",
  571    573   
 "aws-smithy-types",
  572    574   
 "aws-smithy-xml",
  573    575   
 "bytes",
  574    576   
 "futures-util",
  575    577   
 "http 0.2.12",
  576    578   
 "http-body 0.4.6",
  577    579   
 "hyper 0.14.32",
  578         -
 "lambda_http",
         580  +
 "lambda_http 0.8.4",
  579    581   
 "mime",
  580    582   
 "nom",
  581    583   
 "pin-project-lite",
  582    584   
 "pretty_assertions",
  583    585   
 "regex",
  584    586   
 "serde_urlencoded",
  585    587   
 "thiserror 2.0.17",
  586    588   
 "tokio",
  587    589   
 "tower 0.4.13",
  588         -
 "tower-http",
         590  +
 "tower-http 0.3.5",
  589    591   
 "tracing",
  590    592   
 "uuid",
  591    593   
]
  592    594   
  593    595   
[[package]]
  594    596   
name = "aws-smithy-mocks"
  595         -
version = "0.2.3"
         597  +
version = "0.2.4"
  596    598   
dependencies = [
  597    599   
 "aws-smithy-async",
  598    600   
 "aws-smithy-http-client",
  599    601   
 "aws-smithy-runtime",
  600    602   
 "aws-smithy-runtime-api",
  601    603   
 "aws-smithy-types",
  602    604   
 "http 1.4.0",
  603    605   
 "tokio",
  604    606   
]
  605    607   
  606    608   
[[package]]
  607    609   
name = "aws-smithy-observability"
  608         -
version = "0.2.0"
         610  +
version = "0.2.1"
  609    611   
dependencies = [
  610    612   
 "aws-smithy-runtime-api",
  611    613   
 "serial_test",
  612    614   
]
  613    615   
  614    616   
[[package]]
  615    617   
name = "aws-smithy-observability-otel"
  616         -
version = "0.1.4"
         618  +
version = "0.1.5"
  617    619   
dependencies = [
  618    620   
 "async-global-executor",
  619    621   
 "async-task",
  620    622   
 "aws-smithy-observability",
  621    623   
 "criterion",
  622    624   
 "opentelemetry",
  623    625   
 "opentelemetry_sdk",
  624    626   
 "stats_alloc",
  625    627   
 "tokio",
  626    628   
 "value-bag",
  627    629   
]
  628    630   
  629    631   
[[package]]
  630    632   
name = "aws-smithy-protocol-test"
  631         -
version = "0.63.7"
         633  +
version = "0.63.8"
  632    634   
dependencies = [
  633    635   
 "assert-json-diff",
  634    636   
 "aws-smithy-runtime-api",
  635    637   
 "base64-simd",
  636    638   
 "cbor-diag",
  637    639   
 "ciborium",
  638    640   
 "http 0.2.12",
         641  +
 "http 1.4.0",
  639    642   
 "pretty_assertions",
  640    643   
 "regex-lite",
  641    644   
 "roxmltree",
  642    645   
 "serde_json",
  643    646   
 "thiserror 2.0.17",
  644    647   
]
  645    648   
  646    649   
[[package]]
  647    650   
name = "aws-smithy-query"
  648         -
version = "0.60.9"
         651  +
version = "0.60.10"
  649    652   
dependencies = [
  650    653   
 "aws-smithy-types",
  651    654   
 "urlencoding",
  652    655   
]
  653    656   
  654    657   
[[package]]
  655    658   
name = "aws-smithy-runtime"
  656         -
version = "1.9.8"
         659  +
version = "1.10.0"
  657    660   
dependencies = [
  658    661   
 "approx",
  659    662   
 "aws-smithy-async",
  660    663   
 "aws-smithy-http",
  661    664   
 "aws-smithy-http-client",
  662    665   
 "aws-smithy-observability",
  663    666   
 "aws-smithy-runtime-api",
  664    667   
 "aws-smithy-types",
  665    668   
 "bytes",
  666    669   
 "fastrand",
  667    670   
 "futures-util",
  668    671   
 "http 0.2.12",
  669    672   
 "http 1.4.0",
  670    673   
 "http-body 0.4.6",
  671    674   
 "http-body 1.0.1",
         675  +
 "http-body-util",
  672    676   
 "hyper 0.14.32",
  673    677   
 "pin-project-lite",
  674    678   
 "pin-utils",
  675    679   
 "pretty_assertions",
  676    680   
 "tokio",
  677    681   
 "tracing",
  678    682   
 "tracing-subscriber",
  679    683   
 "tracing-test",
  680    684   
]
  681    685   
  682    686   
[[package]]
  683    687   
name = "aws-smithy-runtime-api"
  684         -
version = "1.10.0"
         688  +
version = "1.11.0"
  685    689   
dependencies = [
  686    690   
 "aws-smithy-async",
  687    691   
 "aws-smithy-types",
  688    692   
 "bytes",
  689    693   
 "http 0.2.12",
  690    694   
 "http 1.4.0",
  691    695   
 "pin-project-lite",
  692    696   
 "proptest",
  693    697   
 "tokio",
  694    698   
 "tracing",
  695    699   
 "zeroize",
  696    700   
]
  697    701   
  698    702   
[[package]]
  699    703   
name = "aws-smithy-types"
  700         -
version = "1.3.6"
         704  +
version = "1.4.0"
  701    705   
dependencies = [
  702    706   
 "base64 0.13.1",
  703    707   
 "base64-simd",
  704    708   
 "bytes",
  705    709   
 "bytes-utils",
  706    710   
 "ciborium",
  707    711   
 "criterion",
  708    712   
 "futures-core",
  709    713   
 "http 0.2.12",
  710    714   
 "http 1.4.0",
  711    715   
 "http-body 0.4.6",
  712    716   
 "http-body 1.0.1",
  713    717   
 "http-body-util",
  714    718   
 "hyper 0.14.32",
  715    719   
 "itoa",
  716    720   
 "lazy_static",
  717    721   
 "num-integer",
  718    722   
 "pin-project-lite",
  719    723   
 "pin-utils",
  720    724   
 "proptest",
  721    725   
 "rand 0.8.5",
  722    726   
 "ryu",
  723    727   
 "serde",
  724    728   
 "serde_json",
  725    729   
 "tempfile",
  726    730   
 "time",
  727    731   
 "tokio",
  728    732   
 "tokio-stream",
  729    733   
 "tokio-util",
  730    734   
]
  731    735   
  732    736   
[[package]]
  733    737   
name = "aws-smithy-types-convert"
  734         -
version = "0.60.11"
         738  +
version = "0.60.12"
  735    739   
dependencies = [
  736    740   
 "aws-smithy-async",
  737    741   
 "aws-smithy-types",
  738    742   
 "chrono",
  739    743   
 "futures-core",
  740    744   
 "time",
  741    745   
]
  742    746   
  743    747   
[[package]]
  744    748   
name = "aws-smithy-wasm"
  745    749   
version = "0.1.7"
  746    750   
dependencies = [
  747    751   
 "aws-smithy-http",
  748    752   
 "aws-smithy-runtime-api",
  749    753   
 "aws-smithy-types",
  750    754   
 "bytes",
  751    755   
 "http 1.4.0",
  752    756   
 "tracing",
  753    757   
 "wasip2",
  754    758   
]
  755    759   
  756    760   
[[package]]
  757    761   
name = "aws-smithy-xml"
  758    762   
version = "0.60.13"
  759    763   
dependencies = [
  760    764   
 "aws-smithy-protocol-test",
  761    765   
 "base64 0.13.1",
  762    766   
 "proptest",
  763    767   
 "xmlparser",
  764    768   
]
  765    769   
  766    770   
[[package]]
  767    771   
name = "aws_lambda_events"
  768    772   
version = "0.12.1"
  769    773   
source = "registry+https://github.com/rust-lang/crates.io-index"
  770    774   
checksum = "03611508dd1e514e311caec235b581c99a4cb66fa1771bd502819eed69894f12"
  771    775   
dependencies = [
  772    776   
 "base64 0.21.7",
  773    777   
 "bytes",
  774    778   
 "http 0.2.12",
  775    779   
 "http-body 0.4.6",
  776         -
 "http-serde",
         780  +
 "http-serde 1.1.3",
         781  +
 "query_map",
         782  +
 "serde",
         783  +
 "serde_json",
         784  +
]
         785  +
         786  +
[[package]]
         787  +
name = "aws_lambda_events"
         788  +
version = "1.0.1"
         789  +
source = "registry+https://github.com/rust-lang/crates.io-index"
         790  +
checksum = "ac59c9b189a3bd75146633e1c87f35fb727f53b03c7f331af789ff1293a9f350"
         791  +
dependencies = [
         792  +
 "base64 0.22.1",
         793  +
 "bytes",
         794  +
 "http 1.4.0",
         795  +
 "http-body 1.0.1",
         796  +
 "http-serde 2.1.1",
  777    797   
 "query_map",
  778    798   
 "serde",
  779    799   
 "serde_json",
  780    800   
]
  781    801   
  782    802   
[[package]]
  783    803   
name = "base64"
  784    804   
version = "0.13.1"
  785    805   
source = "registry+https://github.com/rust-lang/crates.io-index"
  786    806   
checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8"
@@ -1756,1776 +1815,1845 @@
 1776   1796   
[[package]]
 1777   1797   
name = "http-serde"
 1778   1798   
version = "1.1.3"
 1779   1799   
source = "registry+https://github.com/rust-lang/crates.io-index"
 1780   1800   
checksum = "6f560b665ad9f1572cfcaf034f7fb84338a7ce945216d64a90fd81f046a3caee"
 1781   1801   
dependencies = [
 1782   1802   
 "http 0.2.12",
 1783   1803   
 "serde",
 1784   1804   
]
 1785   1805   
        1806  +
[[package]]
        1807  +
name = "http-serde"
        1808  +
version = "2.1.1"
        1809  +
source = "registry+https://github.com/rust-lang/crates.io-index"
        1810  +
checksum = "0f056c8559e3757392c8d091e796416e4649d8e49e88b8d76df6c002f05027fd"
        1811  +
dependencies = [
        1812  +
 "http 1.4.0",
        1813  +
 "serde",
        1814  +
]
        1815  +
 1786   1816   
[[package]]
 1787   1817   
name = "httparse"
 1788   1818   
version = "1.10.1"
 1789   1819   
source = "registry+https://github.com/rust-lang/crates.io-index"
 1790   1820   
checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
 1791   1821   
 1792   1822   
[[package]]
 1793   1823   
name = "httpdate"
 1794   1824   
version = "1.0.3"
 1795   1825   
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -2024,2054 +2084,2117 @@
 2044   2074   
 "aws-smithy-http",
 2045   2075   
 "aws-smithy-json",
 2046   2076   
 "aws-smithy-runtime",
 2047   2077   
 "aws-smithy-runtime-api",
 2048   2078   
 "aws-smithy-types",
 2049   2079   
 "aws-smithy-xml",
 2050   2080   
 "bytes",
 2051   2081   
 "fastrand",
 2052   2082   
 "futures-util",
 2053   2083   
 "http 0.2.12",
        2084  +
 "http 1.4.0",
 2054   2085   
 "http-body 0.4.6",
        2086  +
 "http-body 1.0.1",
        2087  +
 "http-body-util",
 2055   2088   
 "md-5",
 2056   2089   
 "percent-encoding",
 2057   2090   
 "pin-project-lite",
 2058   2091   
 "proptest",
 2059   2092   
 "regex-lite",
 2060   2093   
 "tokio",
 2061   2094   
 "tracing",
 2062   2095   
 "url",
 2063   2096   
]
 2064   2097   
@@ -2152,2185 +2265,2367 @@
 2172   2205   
dependencies = [
 2173   2206   
 "log",
 2174   2207   
]
 2175   2208   
 2176   2209   
[[package]]
 2177   2210   
name = "lambda_http"
 2178   2211   
version = "0.8.4"
 2179   2212   
source = "registry+https://github.com/rust-lang/crates.io-index"
 2180   2213   
checksum = "cfba45269ac18740ba882b09d1617c1f05eb4bdc026a5149b593bf77dab12e6b"
 2181   2214   
dependencies = [
 2182         -
 "aws_lambda_events",
        2215  +
 "aws_lambda_events 0.12.1",
 2183   2216   
 "base64 0.21.7",
 2184   2217   
 "bytes",
 2185   2218   
 "encoding_rs",
 2186   2219   
 "futures",
 2187   2220   
 "http 0.2.12",
 2188   2221   
 "http-body 0.4.6",
 2189   2222   
 "hyper 0.14.32",
 2190         -
 "lambda_runtime",
        2223  +
 "lambda_runtime 0.8.3",
        2224  +
 "mime",
        2225  +
 "percent-encoding",
        2226  +
 "serde",
        2227  +
 "serde_json",
        2228  +
 "serde_urlencoded",
        2229  +
 "tokio-stream",
        2230  +
 "url",
        2231  +
]
        2232  +
        2233  +
[[package]]
        2234  +
name = "lambda_http"
        2235  +
version = "1.0.1"
        2236  +
source = "registry+https://github.com/rust-lang/crates.io-index"
        2237  +
checksum = "a106755a9079a3ed20b4262e32c9a5efa127c97546cb2ecf69bbf3d17dbf970b"
        2238  +
dependencies = [
        2239  +
 "aws_lambda_events 1.0.1",
        2240  +
 "bytes",
        2241  +
 "encoding_rs",
        2242  +
 "futures-util",
        2243  +
 "http 1.4.0",
        2244  +
 "http-body 1.0.1",
        2245  +
 "http-body-util",
        2246  +
 "hyper 1.8.1",
        2247  +
 "lambda_runtime 1.0.1",
 2191   2248   
 "mime",
 2192   2249   
 "percent-encoding",
        2250  +
 "pin-project-lite",
 2193   2251   
 "serde",
 2194   2252   
 "serde_json",
 2195   2253   
 "serde_urlencoded",
 2196   2254   
 "tokio-stream",
 2197   2255   
 "url",
 2198   2256   
]
 2199   2257   
 2200   2258   
[[package]]
 2201   2259   
name = "lambda_runtime"
 2202   2260   
version = "0.8.3"
 2203   2261   
source = "registry+https://github.com/rust-lang/crates.io-index"
 2204   2262   
checksum = "deca8f65d7ce9a8bfddebb49d7d91b22e788a59ca0c5190f26794ab80ed7a702"
 2205   2263   
dependencies = [
 2206   2264   
 "async-stream",
 2207   2265   
 "base64 0.20.0",
 2208   2266   
 "bytes",
 2209   2267   
 "futures",
 2210   2268   
 "http 0.2.12",
 2211   2269   
 "http-body 0.4.6",
 2212         -
 "http-serde",
        2270  +
 "http-serde 1.1.3",
 2213   2271   
 "hyper 0.14.32",
 2214         -
 "lambda_runtime_api_client",
        2272  +
 "lambda_runtime_api_client 0.8.0",
 2215   2273   
 "serde",
 2216   2274   
 "serde_json",
 2217   2275   
 "serde_path_to_error",
 2218   2276   
 "tokio",
 2219   2277   
 "tokio-stream",
 2220   2278   
 "tower 0.4.13",
 2221   2279   
 "tracing",
 2222   2280   
]
 2223   2281   
        2282  +
[[package]]
        2283  +
name = "lambda_runtime"
        2284  +
version = "1.0.1"
        2285  +
source = "registry+https://github.com/rust-lang/crates.io-index"
        2286  +
checksum = "46e566d19773ae483b0d32cc6045c5420d7b3eec6192ecb1c26ffa4e0091388a"
        2287  +
dependencies = [
        2288  +
 "async-stream",
        2289  +
 "base64 0.22.1",
        2290  +
 "bytes",
        2291  +
 "futures",
        2292  +
 "http 1.4.0",
        2293  +
 "http-body-util",
        2294  +
 "http-serde 2.1.1",
        2295  +
 "hyper 1.8.1",
        2296  +
 "lambda_runtime_api_client 1.0.1",
        2297  +
 "pin-project",
        2298  +
 "serde",
        2299  +
 "serde_json",
        2300  +
 "serde_path_to_error",
        2301  +
 "tokio",
        2302  +
 "tokio-stream",
        2303  +
 "tower 0.5.3",
        2304  +
 "tracing",
        2305  +
]
        2306  +
 2224   2307   
[[package]]
 2225   2308   
name = "lambda_runtime_api_client"
 2226   2309   
version = "0.8.0"
 2227   2310   
source = "registry+https://github.com/rust-lang/crates.io-index"
 2228   2311   
checksum = "690c5ae01f3acac8c9c3348b556fc443054e9b7f1deaf53e9ebab716282bf0ed"
 2229   2312   
dependencies = [
 2230   2313   
 "http 0.2.12",
 2231   2314   
 "hyper 0.14.32",
 2232   2315   
 "tokio",
 2233   2316   
 "tower-service",
 2234   2317   
]
 2235   2318   
        2319  +
[[package]]
        2320  +
name = "lambda_runtime_api_client"
        2321  +
version = "1.0.1"
        2322  +
source = "registry+https://github.com/rust-lang/crates.io-index"
        2323  +
checksum = "2c039f06329949692a81a993ede4cfaa6abab3ac8e72590cf7c5e6a64a9ec7b1"
        2324  +
dependencies = [
        2325  +
 "bytes",
        2326  +
 "futures-channel",
        2327  +
 "futures-util",
        2328  +
 "http 1.4.0",
        2329  +
 "http-body 1.0.1",
        2330  +
 "http-body-util",
        2331  +
 "hyper 1.8.1",
        2332  +
 "hyper-util",
        2333  +
 "tower 0.5.3",
        2334  +
 "tracing",
        2335  +
 "tracing-subscriber",
        2336  +
]
        2337  +
 2236   2338   
[[package]]
 2237   2339   
name = "lazy_static"
 2238   2340   
version = "1.5.0"
 2239   2341   
source = "registry+https://github.com/rust-lang/crates.io-index"
 2240   2342   
checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
 2241   2343   
 2242   2344   
[[package]]
 2243   2345   
name = "libc"
 2244   2346   
version = "0.2.180"
 2245   2347   
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -3583,3685 +3642,3750 @@
 3603   3705   
name = "syn"
 3604   3706   
version = "2.0.114"
 3605   3707   
source = "registry+https://github.com/rust-lang/crates.io-index"
 3606   3708   
checksum = "d4d107df263a3013ef9b1879b0df87d706ff80f65a86ea879bd9c31f9b307c2a"
 3607   3709   
dependencies = [
 3608   3710   
 "proc-macro2",
 3609   3711   
 "quote",
 3610   3712   
 "unicode-ident",
 3611   3713   
]
 3612   3714   
        3715  +
[[package]]
        3716  +
name = "sync_wrapper"
        3717  +
version = "1.0.2"
        3718  +
source = "registry+https://github.com/rust-lang/crates.io-index"
        3719  +
checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263"
        3720  +
 3613   3721   
[[package]]
 3614   3722   
name = "synstructure"
 3615   3723   
version = "0.13.2"
 3616   3724   
source = "registry+https://github.com/rust-lang/crates.io-index"
 3617   3725   
checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
 3618   3726   
dependencies = [
 3619   3727   
 "proc-macro2",
 3620   3728   
 "quote",
 3621   3729   
 "syn 2.0.114",
 3622   3730   
]
@@ -3878,3986 +3970,4099 @@
 3898   4006   
name = "tower"
 3899   4007   
version = "0.4.13"
 3900   4008   
source = "registry+https://github.com/rust-lang/crates.io-index"
 3901   4009   
checksum = "b8fa9be0de6cf49e536ce1851f987bd21a43b771b09473c3549a6c853db37c1c"
 3902   4010   
dependencies = [
 3903   4011   
 "futures-core",
 3904   4012   
 "futures-util",
 3905   4013   
 "pin-project",
 3906   4014   
 "pin-project-lite",
 3907   4015   
 "tokio",
        4016  +
 "tokio-util",
 3908   4017   
 "tower-layer",
 3909   4018   
 "tower-service",
 3910   4019   
 "tracing",
 3911   4020   
]
 3912   4021   
 3913   4022   
[[package]]
 3914   4023   
name = "tower"
 3915   4024   
version = "0.5.3"
 3916   4025   
source = "registry+https://github.com/rust-lang/crates.io-index"
 3917   4026   
checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4"
 3918   4027   
dependencies = [
        4028  +
 "futures-core",
        4029  +
 "futures-util",
        4030  +
 "pin-project-lite",
        4031  +
 "sync_wrapper",
 3919   4032   
 "tower-layer",
 3920   4033   
 "tower-service",
 3921   4034   
]
 3922   4035   
 3923   4036   
[[package]]
 3924   4037   
name = "tower-http"
 3925   4038   
version = "0.3.5"
 3926   4039   
source = "registry+https://github.com/rust-lang/crates.io-index"
 3927   4040   
checksum = "f873044bf02dd1e8239e9c1293ea39dad76dc594ec16185d0a1bf31d8dc8d858"
 3928   4041   
dependencies = [
 3929   4042   
 "bitflags 1.3.2",
 3930   4043   
 "bytes",
 3931   4044   
 "futures-core",
 3932   4045   
 "futures-util",
 3933   4046   
 "http 0.2.12",
 3934   4047   
 "http-body 0.4.6",
 3935   4048   
 "http-range-header",
 3936   4049   
 "pin-project-lite",
 3937   4050   
 "tower-layer",
 3938   4051   
 "tower-service",
 3939   4052   
]
 3940   4053   
        4054  +
[[package]]
        4055  +
name = "tower-http"
        4056  +
version = "0.6.8"
        4057  +
source = "registry+https://github.com/rust-lang/crates.io-index"
        4058  +
checksum = "d4e6559d53cc268e5031cd8429d05415bc4cb4aefc4aa5d6cc35fbf5b924a1f8"
        4059  +
dependencies = [
        4060  +
 "bitflags 2.10.0",
        4061  +
 "bytes",
        4062  +
 "http 1.4.0",
        4063  +
 "http-body 1.0.1",
        4064  +
 "pin-project-lite",
        4065  +
 "tokio",
        4066  +
 "tower-layer",
        4067  +
 "tower-service",
        4068  +
]
        4069  +
 3941   4070   
[[package]]
 3942   4071   
name = "tower-layer"
 3943   4072   
version = "0.3.3"
 3944   4073   
source = "registry+https://github.com/rust-lang/crates.io-index"
 3945   4074   
checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e"
 3946   4075   
 3947   4076   
[[package]]
 3948   4077   
name = "tower-service"
 3949   4078   
version = "0.3.3"
 3950   4079   
source = "registry+https://github.com/rust-lang/crates.io-index"

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/Cargo.toml

@@ -1,1 +68,74 @@
    6      6   
description = "test"
    7      7   
edition = "2021"
    8      8   
    9      9   
[package.metadata.smithy]
   10     10   
codegen-version = "ci"
   11     11   
protocol = "aws.protocols#awsQuery"
   12     12   
[dependencies.aws-smithy-async]
   13     13   
path = "/home/build/workspace/smithy-rs/rust-runtime/aws-smithy-async"
   14     14   
[dependencies.aws-smithy-compression]
   15     15   
path = "/home/build/workspace/smithy-rs/rust-runtime/aws-smithy-compression"
   16         -
features = ["http-body-0-4-x"]
   17     16   
[dependencies.aws-smithy-http]
   18     17   
path = "/home/build/workspace/smithy-rs/rust-runtime/aws-smithy-http"
   19     18   
[dependencies.aws-smithy-query]
   20     19   
path = "/home/build/workspace/smithy-rs/rust-runtime/aws-smithy-query"
   21     20   
[dependencies.aws-smithy-runtime]
   22     21   
path = "/home/build/workspace/smithy-rs/rust-runtime/aws-smithy-runtime"
   23     22   
features = ["client"]
   24     23   
[dependencies.aws-smithy-runtime-api]
   25     24   
path = "/home/build/workspace/smithy-rs/rust-runtime/aws-smithy-runtime-api"
   26         -
features = ["client", "http-02x"]
          25  +
features = ["client", "http-1x"]
   27     26   
[dependencies.aws-smithy-types]
   28     27   
path = "/home/build/workspace/smithy-rs/rust-runtime/aws-smithy-types"
   29         -
features = ["http-body-0-4-x"]
          28  +
features = ["http-body-1-x", "http-body-0-4-x"]
   30     29   
[dependencies.aws-smithy-xml]
   31     30   
path = "/home/build/workspace/smithy-rs/rust-runtime/aws-smithy-xml"
   32     31   
[dependencies.fastrand]
   33     32   
version = "2.0.0"
   34     33   
[dependencies.flate2]
   35     34   
version = "1.0.30"
   36     35   
[dependencies.http]
   37     36   
version = "0.2.9"
   38         -
[dependencies.http-body]
   39         -
version = "0.4.4"
          37  +
[dependencies.http-1x]
          38  +
version = "1"
          39  +
package = "http"
          40  +
[dependencies.http-body-1x]
          41  +
version = "1"
          42  +
package = "http-body"
          43  +
[dependencies.http-body-util]
          44  +
version = "0.1.3"
   40     45   
[dependencies.tracing]
   41     46   
version = "0.1"
   42     47   
[dev-dependencies.aws-smithy-http-client]
   43     48   
path = "/home/build/workspace/smithy-rs/rust-runtime/aws-smithy-http-client"
   44     49   
features = ["test-util"]
   45     50   
[dev-dependencies.aws-smithy-protocol-test]
   46     51   
path = "/home/build/workspace/smithy-rs/rust-runtime/aws-smithy-protocol-test"
   47     52   
[dev-dependencies.aws-smithy-types]
   48     53   
path = "/home/build/workspace/smithy-rs/rust-runtime/aws-smithy-types"
          54  +
features = ["http-body-1-x"]
   49     55   
[dev-dependencies.bytes]
   50     56   
version = "1.4.0"
   51     57   
[dev-dependencies.pretty_assertions]
   52     58   
version = "1.3.0"
   53     59   
[dev-dependencies.tokio]
   54     60   
version = "1.23.1"
   55     61   
features = ["macros", "test-util", "rt-multi-thread"]
   56     62   
[dev-dependencies.tracing-test]
   57     63   
version = "0.2.5"
   58     64   
features = ["no-env-filter"]

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/client_request_compression.rs

@@ -1,1 +38,38 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/*
    3      3   
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
    4      4   
 * SPDX-License-Identifier: Apache-2.0
    5      5   
 */
    6      6   
    7      7   
use aws_smithy_compression::body::compress::CompressedBody;
    8         -
use aws_smithy_compression::http::http_body_0_4_x::CompressRequest;
           8  +
use aws_smithy_compression::http::CompressRequest;
    9      9   
use aws_smithy_compression::{CompressionAlgorithm, CompressionOptions};
   10     10   
use aws_smithy_runtime::client::sdk_feature::SmithySdkFeature;
   11     11   
use aws_smithy_runtime_api::box_error::BoxError;
   12     12   
use aws_smithy_runtime_api::client::interceptors::context::{BeforeSerializationInterceptorContextRef, BeforeTransmitInterceptorContextMut};
   13     13   
use aws_smithy_runtime_api::client::interceptors::{Intercept, SharedInterceptor};
   14     14   
use aws_smithy_runtime_api::client::orchestrator::HttpRequest;
   15     15   
use aws_smithy_runtime_api::client::runtime_components::{RuntimeComponents, RuntimeComponentsBuilder};
   16     16   
use aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin;
   17     17   
use aws_smithy_types::body::SdkBody;
   18     18   
use aws_smithy_types::config_bag::{ConfigBag, Layer, Storable, StoreReplace};
@@ -80,80 +279,281 @@
  100    100   
        // Don't wrap a body if compression is disabled.
  101    101   
        if !options.is_enabled() {
  102    102   
            tracing::trace!("request compression is disabled and will not be applied");
  103    103   
            return Ok(());
  104    104   
        }
  105    105   
  106    106   
        // Don't wrap a body if it's below the minimum size
  107    107   
        //
  108    108   
        // Because compressing small amounts of data can actually increase its size,
  109    109   
        // we check to see if the data is big enough to make compression worthwhile.
  110         -
        let size_hint = http_body::Body::size_hint(request.body()).exact();
         110  +
        let size_hint = http_body_1x::Body::size_hint(request.body()).exact();
  111    111   
        if let Some(known_size) = size_hint {
  112    112   
            if known_size < options.min_compression_size_bytes() as u64 {
  113    113   
                tracing::trace!(
  114    114   
                    min_compression_size_bytes = options.min_compression_size_bytes(),
  115    115   
                    known_size,
  116    116   
                    "request body is below minimum size and will not be compressed"
  117    117   
                );
  118    118   
                return Ok(());
  119    119   
            }
  120    120   
            tracing::trace!("compressing sized request body...");
  121    121   
        } else {
  122    122   
            tracing::trace!("compressing unsized request body...");
  123    123   
        }
  124    124   
  125         -
        wrap_request_body_in_compressed_body(request, CompressionAlgorithm::Gzip.into_impl_http_body_0_4_x(&options))?;
         125  +
        wrap_request_body_in_compressed_body(request, CompressionAlgorithm::Gzip.into_impl_http_body_1_x(&options))?;
  126    126   
        cfg.interceptor_state()
  127    127   
            .store_append::<SmithySdkFeature>(SmithySdkFeature::GzipRequestCompression);
  128    128   
  129    129   
        Ok(())
  130    130   
    }
  131    131   
}
  132    132   
  133    133   
fn wrap_request_body_in_compressed_body(request: &mut HttpRequest, request_compress_impl: Box<dyn CompressRequest>) -> Result<(), BuildError> {
  134    134   
    request
  135    135   
        .headers_mut()
  136    136   
        .append(request_compress_impl.header_name(), request_compress_impl.header_value());
  137    137   
    let mut body = {
  138    138   
        let body = mem::replace(request.body_mut(), SdkBody::taken());
  139    139   
  140    140   
        if body.is_streaming() {
  141         -
            request.headers_mut().remove(http::header::CONTENT_LENGTH);
         141  +
            request.headers_mut().remove(http_1x::header::CONTENT_LENGTH);
  142    142   
            body.map(move |body| {
  143    143   
                let body = CompressedBody::new(body, request_compress_impl.clone());
  144         -
                SdkBody::from_body_0_4(body)
         144  +
                SdkBody::from_body_1_x(body)
  145    145   
            })
  146    146   
        } else {
  147    147   
            let body = CompressedBody::new(body, request_compress_impl.clone());
  148    148   
            let body = body.into_compressed_sdk_body().map_err(BuildError::other)?;
  149    149   
  150    150   
            let content_length = body.content_length().expect("this payload is in-memory");
  151         -
            request.headers_mut().insert(http::header::CONTENT_LENGTH, content_length.to_string());
         151  +
            request.headers_mut().insert(http_1x::header::CONTENT_LENGTH, content_length.to_string());
  152    152   
  153    153   
            body
  154    154   
        }
  155    155   
    };
  156    156   
    mem::swap(request.body_mut(), &mut body);
  157    157   
  158    158   
    Ok(())
  159    159   
}
  160    160   
  161    161   
#[derive(Debug, Copy, Clone, Default)]
  162    162   
pub(crate) struct DisableRequestCompression(pub(crate) bool);
  163    163   
  164    164   
impl From<bool> for DisableRequestCompression {
  165    165   
    fn from(value: bool) -> Self {
  166    166   
        DisableRequestCompression(value)
  167    167   
    }
  168    168   
}
  169    169   
  170    170   
impl Storable for DisableRequestCompression {
  171    171   
    type Storer = StoreReplace<Self>;
  172    172   
}
  173    173   
  174    174   
#[derive(Debug, Copy, Clone)]
  175    175   
pub(crate) struct RequestMinCompressionSizeBytes(pub(crate) u32);
  176    176   
  177    177   
impl Default for RequestMinCompressionSizeBytes {
  178    178   
    fn default() -> Self {
  179    179   
        RequestMinCompressionSizeBytes(10240)
  180    180   
    }
  181    181   
}
  182    182   
  183    183   
impl From<u32> for RequestMinCompressionSizeBytes {
  184    184   
    fn from(value: u32) -> Self {
  185    185   
        RequestMinCompressionSizeBytes(value)
  186    186   
    }
  187    187   
}
  188    188   
  189    189   
impl Storable for RequestMinCompressionSizeBytes {
  190    190   
    type Storer = StoreReplace<Self>;
  191    191   
}
  192    192   
  193    193   
#[cfg(test)]
  194    194   
mod tests {
  195    195   
    use super::wrap_request_body_in_compressed_body;
  196    196   
    use crate::client_request_compression::{RequestCompressionInterceptor, RequestMinCompressionSizeBytes};
  197    197   
    use aws_smithy_compression::{CompressionAlgorithm, CompressionOptions};
  198    198   
    use aws_smithy_runtime::client::sdk_feature::SmithySdkFeature;
  199    199   
    use aws_smithy_runtime_api::client::interceptors::context::{Input, InterceptorContext};
  200    200   
    use aws_smithy_runtime_api::client::interceptors::Intercept;
  201    201   
    use aws_smithy_runtime_api::client::orchestrator::HttpRequest;
  202    202   
    use aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder;
  203    203   
    use aws_smithy_types::body::SdkBody;
  204    204   
    use aws_smithy_types::config_bag::{ConfigBag, Layer};
  205         -
    use http_body::Body;
         205  +
    use http_body_util::BodyExt;
  206    206   
  207    207   
    const UNCOMPRESSED_INPUT: &[u8] = b"hello world";
  208    208   
    const COMPRESSED_OUTPUT: &[u8] = &[
  209    209   
        31, 139, 8, 0, 0, 0, 0, 0, 0, 255, 203, 72, 205, 201, 201, 87, 40, 207, 47, 202, 73, 1, 0, 133, 17, 74, 13, 11, 0, 0, 0,
  210    210   
    ];
  211    211   
  212    212   
    #[tokio::test]
  213    213   
    async fn test_compressed_body_is_retryable() {
  214         -
        let mut request: HttpRequest = http::Request::builder()
         214  +
        let mut request: HttpRequest = http_1x::Request::builder()
  215    215   
            .body(SdkBody::retryable(move || SdkBody::from(UNCOMPRESSED_INPUT)))
  216    216   
            .unwrap()
  217    217   
            .try_into()
  218    218   
            .unwrap();
  219    219   
  220    220   
        // ensure original SdkBody is retryable
  221    221   
        let mut body = request.body().try_clone().unwrap();
  222    222   
        let mut body_data = Vec::new();
  223         -
        while let Some(data) = body.data().await {
  224         -
            body_data.extend_from_slice(&data.unwrap())
         223  +
        while let Some(Ok(frame)) = body.frame().await {
         224  +
            let data = frame.into_data().expect("Data frame");
         225  +
            body_data.extend_from_slice(&data)
  225    226   
        }
  226    227   
        // Not yet wrapped, should still be the same as UNCOMPRESSED_INPUT.
  227    228   
        assert_eq!(UNCOMPRESSED_INPUT, body_data);
  228    229   
  229    230   
        let compression_algorithm = CompressionAlgorithm::Gzip;
  230    231   
        let compression_options = CompressionOptions::default().with_min_compression_size_bytes(0).unwrap();
  231    232   
  232         -
        wrap_request_body_in_compressed_body(&mut request, compression_algorithm.into_impl_http_body_0_4_x(&compression_options)).unwrap();
         233  +
        wrap_request_body_in_compressed_body(&mut request, compression_algorithm.into_impl_http_body_1_x(&compression_options)).unwrap();
  233    234   
  234    235   
        // ensure again that wrapped SdkBody is retryable
  235    236   
        let mut body = request.body().try_clone().expect("body is retryable");
  236    237   
        let mut body_data = Vec::new();
  237         -
        while let Some(data) = body.data().await {
  238         -
            body_data.extend_from_slice(&data.unwrap())
         238  +
        while let Some(Ok(frame)) = body.frame().await {
         239  +
            let data = frame.into_data().expect("Data frame");
         240  +
            body_data.extend_from_slice(&data)
  239    241   
        }
  240    242   
  241    243   
        // Since this body was wrapped, the output should be compressed data
  242    244   
        assert_ne!(UNCOMPRESSED_INPUT, body_data.as_slice());
  243    245   
        assert_eq!(COMPRESSED_OUTPUT, body_data.as_slice());
  244    246   
    }
  245    247   
  246    248   
    fn context() -> InterceptorContext {
  247    249   
        let mut context = InterceptorContext::new(Input::doesnt_matter());
  248    250   
        context.enter_serialization_phase();
  249    251   
        context.set_request(
  250         -
            http::Request::builder()
         252  +
            http_1x::Request::builder()
  251    253   
                .body(SdkBody::from(UNCOMPRESSED_INPUT))
  252    254   
                .unwrap()
  253    255   
                .try_into()
  254    256   
                .unwrap(),
  255    257   
        );
  256    258   
        let _ = context.take_input();
  257    259   
        context.enter_before_transmit_phase();
  258    260   
        context
  259    261   
    }
  260    262   

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/datetime_offsets.rs

@@ -151,151 +218,219 @@
  171    171   
                _input: &crate::operation::datetime_offsets::DatetimeOffsetsInput,
  172    172   
                output: &mut ::std::string::String,
  173    173   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  174    174   
                use ::std::fmt::Write as _;
  175    175   
                ::std::write!(output, "/").expect("formatting should succeed");
  176    176   
                ::std::result::Result::Ok(())
  177    177   
            }
  178    178   
            #[allow(clippy::unnecessary_wraps)]
  179    179   
            fn update_http_builder(
  180    180   
                input: &crate::operation::datetime_offsets::DatetimeOffsetsInput,
  181         -
                builder: ::http::request::Builder,
  182         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         181  +
                builder: ::http_1x::request::Builder,
         182  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  183    183   
                let mut uri = ::std::string::String::new();
  184    184   
                uri_base(input, &mut uri)?;
  185    185   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  186    186   
            }
  187         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  188         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
         187  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         188  +
            builder =
         189  +
                _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
  189    190   
            builder
  190    191   
        };
  191    192   
        let body = ::aws_smithy_types::body::SdkBody::from(
  192    193   
            crate::protocol_serde::shape_datetime_offsets_input::ser_datetime_offsets_input_input_input(&input)?,
  193    194   
        );
  194    195   
  195    196   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  196    197   
    }
  197    198   
}
  198    199   
#[derive(Debug)]

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/empty_input_and_empty_output.rs

@@ -157,157 +224,225 @@
  177    177   
                _input: &crate::operation::empty_input_and_empty_output::EmptyInputAndEmptyOutputInput,
  178    178   
                output: &mut ::std::string::String,
  179    179   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  180    180   
                use ::std::fmt::Write as _;
  181    181   
                ::std::write!(output, "/").expect("formatting should succeed");
  182    182   
                ::std::result::Result::Ok(())
  183    183   
            }
  184    184   
            #[allow(clippy::unnecessary_wraps)]
  185    185   
            fn update_http_builder(
  186    186   
                input: &crate::operation::empty_input_and_empty_output::EmptyInputAndEmptyOutputInput,
  187         -
                builder: ::http::request::Builder,
  188         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         187  +
                builder: ::http_1x::request::Builder,
         188  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  189    189   
                let mut uri = ::std::string::String::new();
  190    190   
                uri_base(input, &mut uri)?;
  191    191   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  192    192   
            }
  193         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  194         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
         193  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         194  +
            builder =
         195  +
                _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
  195    196   
            builder
  196    197   
        };
  197    198   
        let body = ::aws_smithy_types::body::SdkBody::from(
  198    199   
            crate::protocol_serde::shape_empty_input_and_empty_output_input::ser_empty_input_and_empty_output_input_input_input(&input)?,
  199    200   
        );
  200    201   
  201    202   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  202    203   
    }
  203    204   
}
  204    205   
#[derive(Debug)]

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/endpoint_operation.rs

@@ -151,151 +218,219 @@
  171    171   
                _input: &crate::operation::endpoint_operation::EndpointOperationInput,
  172    172   
                output: &mut ::std::string::String,
  173    173   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  174    174   
                use ::std::fmt::Write as _;
  175    175   
                ::std::write!(output, "/").expect("formatting should succeed");
  176    176   
                ::std::result::Result::Ok(())
  177    177   
            }
  178    178   
            #[allow(clippy::unnecessary_wraps)]
  179    179   
            fn update_http_builder(
  180    180   
                input: &crate::operation::endpoint_operation::EndpointOperationInput,
  181         -
                builder: ::http::request::Builder,
  182         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         181  +
                builder: ::http_1x::request::Builder,
         182  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  183    183   
                let mut uri = ::std::string::String::new();
  184    184   
                uri_base(input, &mut uri)?;
  185    185   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  186    186   
            }
  187         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  188         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
         187  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         188  +
            builder =
         189  +
                _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
  189    190   
            builder
  190    191   
        };
  191    192   
        let body = ::aws_smithy_types::body::SdkBody::from(
  192    193   
            crate::protocol_serde::shape_endpoint_operation_input::ser_endpoint_operation_input_input_input(&input)?,
  193    194   
        );
  194    195   
  195    196   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  196    197   
    }
  197    198   
}
  198    199   
#[derive(Debug)]

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/endpoint_with_host_label_operation.rs

@@ -159,159 +234,235 @@
  179    179   
                _input: &crate::operation::endpoint_with_host_label_operation::EndpointWithHostLabelOperationInput,
  180    180   
                output: &mut ::std::string::String,
  181    181   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  182    182   
                use ::std::fmt::Write as _;
  183    183   
                ::std::write!(output, "/").expect("formatting should succeed");
  184    184   
                ::std::result::Result::Ok(())
  185    185   
            }
  186    186   
            #[allow(clippy::unnecessary_wraps)]
  187    187   
            fn update_http_builder(
  188    188   
                input: &crate::operation::endpoint_with_host_label_operation::EndpointWithHostLabelOperationInput,
  189         -
                builder: ::http::request::Builder,
  190         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         189  +
                builder: ::http_1x::request::Builder,
         190  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  191    191   
                let mut uri = ::std::string::String::new();
  192    192   
                uri_base(input, &mut uri)?;
  193    193   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  194    194   
            }
  195         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  196         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
         195  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         196  +
            builder =
         197  +
                _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
  197    198   
            builder
  198    199   
        };
  199    200   
        let body = ::aws_smithy_types::body::SdkBody::from(
  200    201   
            crate::protocol_serde::shape_endpoint_with_host_label_operation_input::ser_endpoint_with_host_label_operation_input_input_input(&input)?,
  201    202   
        );
  202    203   
        if let Some(content_length) = body.content_length() {
  203    204   
            let content_length = content_length.to_string();
  204         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         205  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  205    206   
        }
  206    207   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  207    208   
    }
  208    209   
}
  209    210   
#[derive(Debug)]
  210    211   
struct EndpointWithHostLabelOperationEndpointParamsInterceptor;
  211    212   
  212    213   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for EndpointWithHostLabelOperationEndpointParamsInterceptor {
  213    214   
    fn name(&self) -> &'static str {
  214    215   
        "EndpointWithHostLabelOperationEndpointParamsInterceptor"

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/flattened_xml_map.rs

@@ -151,151 +218,219 @@
  171    171   
                _input: &crate::operation::flattened_xml_map::FlattenedXmlMapInput,
  172    172   
                output: &mut ::std::string::String,
  173    173   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  174    174   
                use ::std::fmt::Write as _;
  175    175   
                ::std::write!(output, "/").expect("formatting should succeed");
  176    176   
                ::std::result::Result::Ok(())
  177    177   
            }
  178    178   
            #[allow(clippy::unnecessary_wraps)]
  179    179   
            fn update_http_builder(
  180    180   
                input: &crate::operation::flattened_xml_map::FlattenedXmlMapInput,
  181         -
                builder: ::http::request::Builder,
  182         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         181  +
                builder: ::http_1x::request::Builder,
         182  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  183    183   
                let mut uri = ::std::string::String::new();
  184    184   
                uri_base(input, &mut uri)?;
  185    185   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  186    186   
            }
  187         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  188         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
         187  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         188  +
            builder =
         189  +
                _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
  189    190   
            builder
  190    191   
        };
  191    192   
        let body = ::aws_smithy_types::body::SdkBody::from(
  192    193   
            crate::protocol_serde::shape_flattened_xml_map_input::ser_flattened_xml_map_input_input_input(&input)?,
  193    194   
        );
  194    195   
  195    196   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  196    197   
    }
  197    198   
}
  198    199   
#[derive(Debug)]

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/flattened_xml_map_with_xml_name.rs

@@ -157,157 +224,225 @@
  177    177   
                _input: &crate::operation::flattened_xml_map_with_xml_name::FlattenedXmlMapWithXmlNameInput,
  178    178   
                output: &mut ::std::string::String,
  179    179   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  180    180   
                use ::std::fmt::Write as _;
  181    181   
                ::std::write!(output, "/").expect("formatting should succeed");
  182    182   
                ::std::result::Result::Ok(())
  183    183   
            }
  184    184   
            #[allow(clippy::unnecessary_wraps)]
  185    185   
            fn update_http_builder(
  186    186   
                input: &crate::operation::flattened_xml_map_with_xml_name::FlattenedXmlMapWithXmlNameInput,
  187         -
                builder: ::http::request::Builder,
  188         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         187  +
                builder: ::http_1x::request::Builder,
         188  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  189    189   
                let mut uri = ::std::string::String::new();
  190    190   
                uri_base(input, &mut uri)?;
  191    191   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  192    192   
            }
  193         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  194         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
         193  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         194  +
            builder =
         195  +
                _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
  195    196   
            builder
  196    197   
        };
  197    198   
        let body = ::aws_smithy_types::body::SdkBody::from(
  198    199   
            crate::protocol_serde::shape_flattened_xml_map_with_xml_name_input::ser_flattened_xml_map_with_xml_name_input_input_input(&input)?,
  199    200   
        );
  200    201   
  201    202   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  202    203   
    }
  203    204   
}
  204    205   
#[derive(Debug)]

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/flattened_xml_map_with_xml_namespace.rs

@@ -161,161 +228,229 @@
  181    181   
                _input: &crate::operation::flattened_xml_map_with_xml_namespace::FlattenedXmlMapWithXmlNamespaceInput,
  182    182   
                output: &mut ::std::string::String,
  183    183   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  184    184   
                use ::std::fmt::Write as _;
  185    185   
                ::std::write!(output, "/").expect("formatting should succeed");
  186    186   
                ::std::result::Result::Ok(())
  187    187   
            }
  188    188   
            #[allow(clippy::unnecessary_wraps)]
  189    189   
            fn update_http_builder(
  190    190   
                input: &crate::operation::flattened_xml_map_with_xml_namespace::FlattenedXmlMapWithXmlNamespaceInput,
  191         -
                builder: ::http::request::Builder,
  192         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         191  +
                builder: ::http_1x::request::Builder,
         192  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  193    193   
                let mut uri = ::std::string::String::new();
  194    194   
                uri_base(input, &mut uri)?;
  195    195   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  196    196   
            }
  197         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  198         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
         197  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         198  +
            builder =
         199  +
                _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
  199    200   
            builder
  200    201   
        };
  201    202   
        let body = ::aws_smithy_types::body::SdkBody::from(
  202    203   
            crate::protocol_serde::shape_flattened_xml_map_with_xml_namespace_input::ser_flattened_xml_map_with_xml_namespace_input_input_input(
  203    204   
                &input,
  204    205   
            )?,
  205    206   
        );
  206    207   
  207    208   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  208    209   
    }

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/fractional_seconds.rs

@@ -151,151 +218,219 @@
  171    171   
                _input: &crate::operation::fractional_seconds::FractionalSecondsInput,
  172    172   
                output: &mut ::std::string::String,
  173    173   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  174    174   
                use ::std::fmt::Write as _;
  175    175   
                ::std::write!(output, "/").expect("formatting should succeed");
  176    176   
                ::std::result::Result::Ok(())
  177    177   
            }
  178    178   
            #[allow(clippy::unnecessary_wraps)]
  179    179   
            fn update_http_builder(
  180    180   
                input: &crate::operation::fractional_seconds::FractionalSecondsInput,
  181         -
                builder: ::http::request::Builder,
  182         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         181  +
                builder: ::http_1x::request::Builder,
         182  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  183    183   
                let mut uri = ::std::string::String::new();
  184    184   
                uri_base(input, &mut uri)?;
  185    185   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  186    186   
            }
  187         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  188         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
         187  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         188  +
            builder =
         189  +
                _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
  189    190   
            builder
  190    191   
        };
  191    192   
        let body = ::aws_smithy_types::body::SdkBody::from(
  192    193   
            crate::protocol_serde::shape_fractional_seconds_input::ser_fractional_seconds_input_input_input(&input)?,
  193    194   
        );
  194    195   
  195    196   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  196    197   
    }
  197    198   
}
  198    199   
#[derive(Debug)]

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/greeting_with_errors.rs

@@ -151,151 +218,219 @@
  171    171   
                _input: &crate::operation::greeting_with_errors::GreetingWithErrorsInput,
  172    172   
                output: &mut ::std::string::String,
  173    173   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  174    174   
                use ::std::fmt::Write as _;
  175    175   
                ::std::write!(output, "/").expect("formatting should succeed");
  176    176   
                ::std::result::Result::Ok(())
  177    177   
            }
  178    178   
            #[allow(clippy::unnecessary_wraps)]
  179    179   
            fn update_http_builder(
  180    180   
                input: &crate::operation::greeting_with_errors::GreetingWithErrorsInput,
  181         -
                builder: ::http::request::Builder,
  182         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         181  +
                builder: ::http_1x::request::Builder,
         182  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  183    183   
                let mut uri = ::std::string::String::new();
  184    184   
                uri_base(input, &mut uri)?;
  185    185   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  186    186   
            }
  187         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  188         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
         187  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         188  +
            builder =
         189  +
                _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
  189    190   
            builder
  190    191   
        };
  191    192   
        let body = ::aws_smithy_types::body::SdkBody::from(
  192    193   
            crate::protocol_serde::shape_greeting_with_errors_input::ser_greeting_with_errors_input_input_input(&input)?,
  193    194   
        );
  194    195   
  195    196   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  196    197   
    }
  197    198   
}
  198    199   
#[derive(Debug)]

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/host_with_path_operation.rs

@@ -157,157 +224,225 @@
  177    177   
                _input: &crate::operation::host_with_path_operation::HostWithPathOperationInput,
  178    178   
                output: &mut ::std::string::String,
  179    179   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  180    180   
                use ::std::fmt::Write as _;
  181    181   
                ::std::write!(output, "/").expect("formatting should succeed");
  182    182   
                ::std::result::Result::Ok(())
  183    183   
            }
  184    184   
            #[allow(clippy::unnecessary_wraps)]
  185    185   
            fn update_http_builder(
  186    186   
                input: &crate::operation::host_with_path_operation::HostWithPathOperationInput,
  187         -
                builder: ::http::request::Builder,
  188         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         187  +
                builder: ::http_1x::request::Builder,
         188  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  189    189   
                let mut uri = ::std::string::String::new();
  190    190   
                uri_base(input, &mut uri)?;
  191    191   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  192    192   
            }
  193         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  194         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
         193  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         194  +
            builder =
         195  +
                _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
  195    196   
            builder
  196    197   
        };
  197    198   
        let body = ::aws_smithy_types::body::SdkBody::from(
  198    199   
            crate::protocol_serde::shape_host_with_path_operation_input::ser_host_with_path_operation_input_input_input(&input)?,
  199    200   
        );
  200    201   
  201    202   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  202    203   
    }
  203    204   
}
  204    205   
#[derive(Debug)]

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/ignores_wrapping_xml_name.rs

@@ -157,157 +224,225 @@
  177    177   
                _input: &crate::operation::ignores_wrapping_xml_name::IgnoresWrappingXmlNameInput,
  178    178   
                output: &mut ::std::string::String,
  179    179   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  180    180   
                use ::std::fmt::Write as _;
  181    181   
                ::std::write!(output, "/").expect("formatting should succeed");
  182    182   
                ::std::result::Result::Ok(())
  183    183   
            }
  184    184   
            #[allow(clippy::unnecessary_wraps)]
  185    185   
            fn update_http_builder(
  186    186   
                input: &crate::operation::ignores_wrapping_xml_name::IgnoresWrappingXmlNameInput,
  187         -
                builder: ::http::request::Builder,
  188         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         187  +
                builder: ::http_1x::request::Builder,
         188  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  189    189   
                let mut uri = ::std::string::String::new();
  190    190   
                uri_base(input, &mut uri)?;
  191    191   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  192    192   
            }
  193         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  194         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
         193  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         194  +
            builder =
         195  +
                _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
  195    196   
            builder
  196    197   
        };
  197    198   
        let body = ::aws_smithy_types::body::SdkBody::from(
  198    199   
            crate::protocol_serde::shape_ignores_wrapping_xml_name_input::ser_ignores_wrapping_xml_name_input_input_input(&input)?,
  199    200   
        );
  200    201   
  201    202   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  202    203   
    }
  203    204   
}
  204    205   
#[derive(Debug)]

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/nested_structures.rs

@@ -151,151 +226,227 @@
  171    171   
                _input: &crate::operation::nested_structures::NestedStructuresInput,
  172    172   
                output: &mut ::std::string::String,
  173    173   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  174    174   
                use ::std::fmt::Write as _;
  175    175   
                ::std::write!(output, "/").expect("formatting should succeed");
  176    176   
                ::std::result::Result::Ok(())
  177    177   
            }
  178    178   
            #[allow(clippy::unnecessary_wraps)]
  179    179   
            fn update_http_builder(
  180    180   
                input: &crate::operation::nested_structures::NestedStructuresInput,
  181         -
                builder: ::http::request::Builder,
  182         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         181  +
                builder: ::http_1x::request::Builder,
         182  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  183    183   
                let mut uri = ::std::string::String::new();
  184    184   
                uri_base(input, &mut uri)?;
  185    185   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  186    186   
            }
  187         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  188         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
         187  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         188  +
            builder =
         189  +
                _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
  189    190   
            builder
  190    191   
        };
  191    192   
        let body = ::aws_smithy_types::body::SdkBody::from(
  192    193   
            crate::protocol_serde::shape_nested_structures_input::ser_nested_structures_input_input_input(&input)?,
  193    194   
        );
  194    195   
        if let Some(content_length) = body.content_length() {
  195    196   
            let content_length = content_length.to_string();
  196         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         197  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  197    198   
        }
  198    199   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  199    200   
    }
  200    201   
}
  201    202   
#[derive(Debug)]
  202    203   
struct NestedStructuresEndpointParamsInterceptor;
  203    204   
  204    205   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for NestedStructuresEndpointParamsInterceptor {
  205    206   
    fn name(&self) -> &'static str {
  206    207   
        "NestedStructuresEndpointParamsInterceptor"