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 async fn post_codex( &self, body: &ResponsesRequest, ctx: &RequestContext, continuation: Option<&ContinuationCandidate>, ) -> Result<CodexResponse, 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 !RefUnwindSafe for CodexHttpClient
impl !UnwindSafe for CodexHttpClient
impl Freeze 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