pub struct ServeHttpOptions {
pub dumb_only: bool,
pub basic_auth: Option<BasicAuthConfig>,
pub rebind_desired: Option<ListenRebindSlot>,
pub tls: Option<Arc<ServerConfig>>,
pub pages: Option<PageHandler>,
}Fields§
§dumb_only: boolWhen true, answer info/refs (even with service=) as dumb text/plain so
smart clients fall back to dumb HTTP (gitprotocol-http). Used by G29.
basic_auth: Option<BasicAuthConfig>Optional in-process HTTP Basic (G36). Unset = unauthenticated (G15).
rebind_desired: Option<ListenRebindSlot>Optional live listen rebind target (Partial; polled in accept loop).
tls: Option<Arc<ServerConfig>>Optional rustls server config for in-process TLS terminate (B9).
pages: Option<PageHandler>Optional browser pages served beside git HTTP.
Trait Implementations§
Source§impl Clone for ServeHttpOptions
impl Clone for ServeHttpOptions
Source§impl Debug for ServeHttpOptions
impl Debug for ServeHttpOptions
Auto Trait Implementations§
impl !RefUnwindSafe for ServeHttpOptions
impl !UnwindSafe for ServeHttpOptions
impl Forget for ServeHttpOptions
impl Freeze for ServeHttpOptionswhere
*const u8 is !null: Freeze,
PhantomData<BasicCredential>: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<Mutex<Option<SocketAddr>>> is !null: Freeze,
PhantomData<ArcInner<Mutex<Option<SocketAddr>>>>: Freeze,
*const ArcInner<ServerConfig> is !null: Freeze,
PhantomData<ArcInner<ServerConfig>>: Freeze,
*const ArcInner<dyn Fn(&HttpRequest) -> Option<HttpResponse> + Sync + Send> is !null: Freeze,
PhantomData<ArcInner<dyn Fn(&HttpRequest) -> Option<HttpResponse> + Sync + Send>>: Freeze,
impl Move for ServeHttpOptions
impl Send for ServeHttpOptionswhere
RawVecInner: Send,
Arc<Mutex<Option<SocketAddr>>>: Send,
Arc<ServerConfig>: Send,
Arc<dyn Fn(&HttpRequest) -> Option<HttpResponse> + Sync + Send>: Send,
impl Sync for ServeHttpOptionswhere
RawVecInner: Sync,
Arc<Mutex<Option<SocketAddr>>>: Sync,
Arc<ServerConfig>: Sync,
Arc<dyn Fn(&HttpRequest) -> Option<HttpResponse> + Sync + Send>: Sync,
impl Unpin for ServeHttpOptionswhere
*const u8 is !null: Unpin,
Arc<Mutex<Option<SocketAddr>>>: Unpin,
Arc<ServerConfig>: Unpin,
Arc<dyn Fn(&HttpRequest) -> Option<HttpResponse> + Sync + Send>: Unpin,
impl UnsafeUnpin for ServeHttpOptionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<BasicCredential>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<Mutex<Option<SocketAddr>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<Option<SocketAddr>>>>: UnsafeUnpin,
*const ArcInner<ServerConfig> is !null: UnsafeUnpin,
PhantomData<ArcInner<ServerConfig>>: UnsafeUnpin,
*const ArcInner<dyn Fn(&HttpRequest) -> Option<HttpResponse> + Sync + Send> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Fn(&HttpRequest) -> Option<HttpResponse> + Sync + Send>>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more