Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/rust/neqo-http3/tests/common/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Quelle  mod.rs

  Sprache: Rust
 

// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use neqo_http3::{Http3Client, Http3Server, Priority, StreamId};
use test_fixture::*;

/// Connect a client and server, send a GET request from the client,
/// and exchange packets so the server receives it.
pub fn connect_and_send_request(close_sending_side: bool) -> (Http3Client, Http3Server, StreamId) {
    let mut client = default_http3_client();
    let mut server = default_http3_server();
    let dgram = connect_peers(&mut client, &mut server);

    let stream_id = client
        .fetch(
            now(),
            "GET",
            ("https""something.com""/"),
            &[],
            Priority::default(),
        )
        .unwrap();

    if close_sending_side {
        client.stream_close_send(stream_id, now()).unwrap();
    }

    let out = client.process(dgram, now());
    let out = server.process(out.dgram(), now());
    drop(client.process(out.dgram(), now()));

    (client, server, stream_id)
}

Messung V0.5 in Prozent
C=81 H=100 G=90

¤ Dauer der Verarbeitung: 0.16 Sekunden  (vorverarbeitet am  2026-08-25) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.