pub struct CodexHttpClient { /* private fields */ }Implementations§
Source§impl CodexHttpClient
impl CodexHttpClient
pub fn new() -> Self
pub fn new_with_client( client: Client, auth_manager: CodexAuthManager<DefaultCodexAuthStore>, base_url: String, ) -> Self
pub fn auth_manager(&self) -> &CodexAuthManager<DefaultCodexAuthStore>
pub fn body_idle_timeout_ms(&self) -> u64
pub async fn post_native_responses( &self, body: &Value, ctx: &RequestContext, use_responses_lite: bool, stream: bool, ) -> Result<Response, CodexError>
pub async fn post_codex( &self, body: &ResponsesRequest, ctx: &RequestContext, continuation: Option<&ContinuationCandidate>, ) -> Result<CodexResponse, CodexError>
pub async fn post_search( &self, body: &SearchRequest, ctx: &RequestContext, ) -> Result<SearchResponse, CodexError>
pub async fn stream_codex_http_events( self: &Arc<Self>, body: &ResponsesRequest, ctx: &RequestContext, ) -> Result<CodexHttpEventReceiver, CodexError>
pub async fn stream_codex_auto_events( self: &Arc<Self>, body: &ResponsesRequest, ctx: &RequestContext, continuation: Option<&ContinuationCandidate>, ) -> Result<CodexWebSocketEventReceiver, CodexError>
pub async fn stream_codex_websocket_events( self: &Arc<Self>, body: &ResponsesRequest, ctx: &RequestContext, continuation: Option<&ContinuationCandidate>, ) -> Result<CodexWebSocketEventReceiver, CodexError>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for CodexHttpClient
impl !RefUnwindSafe for CodexHttpClient
impl !UnwindSafe for CodexHttpClient
impl Send for CodexHttpClient
impl Sync for CodexHttpClient
impl Unpin for CodexHttpClient
impl UnsafeUnpin for CodexHttpClient
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more