You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: route_gateway.rs
    path of file: ./repos/signway/server/src
    
    the code of the file until where you have to start completion: use std::str::FromStr;

use anyhow::anyhow;
use hyper::header::{
    ACCESS_CONTROL_ALLOW_HEADERS, ACCESS_CONTROL_ALLOW_METHODS, ACCESS_CONTROL_ALLOW_ORIGIN,
};
use hyper::http::request;
use hyper::{Method, Request, Response, Result, Uri};
use hyper_tls::HttpsConnector;
use hyper_util::client::legacy;
use hyper_util::rt::TokioExecutor;
use tracing::info;

use crate::gateway_callbacks::CallbackResult;
use crate::server::SignwayServer;
use crate::signing::{UnverifiedSignedRequest, UrlSigner};
use crate::sw_body::{
    bad_gateway, bad_request, full_response_into_sw_response, incoming_response_into_sw_response,
    internal_server, ok, sw_body_from_string, sw_body_to_string, SwBody,
};
use crate::GetSecretResponse;

fn parse_content_length(req: &request::Parts) -> anyhow::Result<usize> {
    let content_length = req
        .headers
        .get("content
    
    async fn with_query_params_and_headers_and_body_and_additional_header() {
        let response = server()
            .handler(
                ReqBuilder::default()
                    .query("page", "1")
                    .header("Content-Length", "3")
                    .post()
                    .body("foo")
                    .sign("foo", "bar", "http://localhost:3000")
                    .unwrap()
                    .header("Content-Type", "text/html")
                    .build()
                    .unwrap(),
            )
            .await
            .unwrap();

        assert_eq!(response.status(), StatusCode::OK);
        let response = sw_body_to_string(response.into_body(), 9999).await.unwrap();
        assert_eq!(
            json_path::<String>(&response, &["headers", "content-length"]).unwrap(),
            "3"
        );
        assert_eq!(
            json_path::<String>(&response, &["headers", "content-type"]).unwrap(),
            "text/html"
        );
        assert_eq!(json_path::<String>(&response, &["data"]).unwrap(), "foo")
    }