Skip to content

Commit

Permalink
add stub module for UA code
Browse files Browse the repository at this point in the history
to be used to drive emulation for web clients
  • Loading branch information
glendc committed Feb 25, 2024
1 parent 2b0d397 commit e89a9ab
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,5 @@ pub mod tcp;
pub mod tls;

pub mod http;

pub mod ua;
23 changes: 23 additions & 0 deletions src/ua/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
//! User agent modules for Rama.
//!
//! TODO: Develop first version of this module

#[derive(Debug)]
#[non_exhaustive]
/// User agent
///
/// TODO: develop first version of this struct
pub struct UserAgent;

impl UserAgent {
/// Create a new user agent
pub fn new() -> Self {
panic!("TODO:implement")
}
}

impl Default for UserAgent {
fn default() -> Self {
panic!("TODO:implement")
}
}

0 comments on commit e89a9ab

Please sign in to comment.