Files

6 lines
6.9 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Low-level HTTP server components for embedding the relay service."><title>iroh_relay::server::http_server - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="iroh_relay" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (b6f0945e4 2025-10-08)" data-channel="nightly" data-search-js="search-8d3311b9.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../../static.files/storage-e2aeef58.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Module http_server</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../iroh_relay/index.html">iroh_<wbr>relay</a><span class="version">1.5.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module http_<wbr>server</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#types" title="Type Aliases">Type Aliases</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In iroh_<wbr>relay::<wbr>server</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">iroh_relay</a>::<wbr><a href="../index.html">server</a></div><h1>Module <span>http_<wbr>server</span>&nbsp;<button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/iroh_relay/server/http_server.rs.html#1-1843">Source</a> </span></div><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>server</code></strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Low-level HTTP server components for embedding the relay service.</p>
<p>This module provides <a href="struct.RelayService.html" title="struct iroh_relay::server::http_server::RelayService"><code>RelayService</code></a> which can be used to embed relay functionality
into an existing HTTP server. It handles individual connections and provides
the core relay protocol implementation.</p>
<p>For a complete relay server implementation, see the parent <a href="../index.html" title="mod iroh_relay::server"><code>server</code></a> module.</p>
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Handlers.html" title="struct iroh_relay::server::http_server::Handlers">Handlers</a></dt><dd>A collection of HTTP request handlers for custom endpoints.</dd><dt><a class="struct" href="struct.RelayService.html" title="struct iroh_relay::server::http_server::RelayService">Relay<wbr>Service</a></dt><dd>The hyper Service that serves the actual relay endpoints.</dd><dt><a class="struct" href="struct.RelayServiceWithNotify.html" title="struct iroh_relay::server::http_server::RelayServiceWithNotify">Relay<wbr>Service<wbr>With<wbr>Notify</a></dt><dd>Combines <a href="struct.RelayService.html" title="struct iroh_relay::server::http_server::RelayService"><code>RelayService</code></a> with a notification token.</dd><dt><a class="struct" href="struct.TlsConfig.html" title="struct iroh_relay::server::http_server::TlsConfig">TlsConfig</a></dt><dd>Configuration to use for the TLS connection</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.AcceptError.html" title="enum iroh_relay::server::http_server::AcceptError">Accept<wbr>Error</a></dt><dd>Server accept errors.</dd><dt><a class="enum" href="enum.ConnectionHandlerError.html" title="enum iroh_relay::server::http_server::ConnectionHandlerError">Connection<wbr>Handler<wbr>Error</a></dt><dd>Server connection errors, includes errors that can happen on <code>accept</code>.</dd><dt><a class="enum" href="enum.ServeConnectionError.html" title="enum iroh_relay::server::http_server::ServeConnectionError">Serve<wbr>Connection<wbr>Error</a></dt><dd>Errors when attempting to upgrade and</dd></dl><h2 id="types" class="section-header">Type Aliases<a href="#types" class="anchor">§</a></h2><dl class="item-table"><dt><a class="type" href="type.BytesBody.html" title="type iroh_relay::server::http_server::BytesBody">Bytes<wbr>Body</a></dt><dd>Boxed HTTP response body produced by <a href="struct.RelayServiceWithNotify.html" title="struct iroh_relay::server::http_server::RelayServiceWithNotify"><code>RelayServiceWithNotify</code></a>.</dd><dt><a class="type" href="type.HyperError.html" title="type iroh_relay::server::http_server::HyperError">Hyper<wbr>Error</a></dt><dd>Boxed error type returned from <a href="struct.RelayServiceWithNotify.html" title="struct iroh_relay::server::http_server::RelayServiceWithNotify"><code>RelayServiceWithNotify</code></a>’s [<code>hyper::service::Service</code>] impl.</dd><dt><a class="type" href="type.HyperResult.html" title="type iroh_relay::server::http_server::HyperResult">Hyper<wbr>Result</a></dt><dd>Result alias for HTTP responses produced by <a href="struct.RelayServiceWithNotify.html" title="struct iroh_relay::server::http_server::RelayServiceWithNotify"><code>RelayServiceWithNotify</code></a>.</dd></dl></section></div></main></body></html>