pub enum LlmInferenceHttpRequestStartTransport {
Http,
Websocket,
Unknown,
}Expand description
Transport the runtime would otherwise use for this request. http (the default when absent) covers plain HTTP and SSE responses; websocket indicates a full-duplex message channel where each body chunk maps to one WebSocket message and the binary flag distinguishes text from binary frames. The SDK consumer uses this to decide whether to service the request with an HTTP client or a WebSocket client. It is the one piece of request metadata the consumer cannot reliably infer from the URL or headers alone.
Variants§
Http
Plain HTTP or SSE response. Each body chunk is an opaque byte range; the response is a status line, headers, and a (possibly streamed) body.
Websocket
Full-duplex WebSocket channel. Each body chunk maps to exactly one WebSocket message and the binary flag distinguishes text from binary frames; request and response chunks flow concurrently.
Unknown
Unknown variant for forward compatibility.
Trait Implementations§
Source§impl Clone for LlmInferenceHttpRequestStartTransport
impl Clone for LlmInferenceHttpRequestStartTransport
Source§fn clone(&self) -> LlmInferenceHttpRequestStartTransport
fn clone(&self) -> LlmInferenceHttpRequestStartTransport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for LlmInferenceHttpRequestStartTransport
impl Default for LlmInferenceHttpRequestStartTransport
Source§fn default() -> LlmInferenceHttpRequestStartTransport
fn default() -> LlmInferenceHttpRequestStartTransport
Source§impl<'de> Deserialize<'de> for LlmInferenceHttpRequestStartTransport
impl<'de> Deserialize<'de> for LlmInferenceHttpRequestStartTransport
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for LlmInferenceHttpRequestStartTransport
Source§impl PartialEq for LlmInferenceHttpRequestStartTransport
impl PartialEq for LlmInferenceHttpRequestStartTransport
Source§fn eq(&self, other: &LlmInferenceHttpRequestStartTransport) -> bool
fn eq(&self, other: &LlmInferenceHttpRequestStartTransport) -> bool
self and other values to be equal, and is used by ==.