Skip to content

a user-friendly Client wrapper, which automatically handles cookies and load/store cookies from/to the specified path

Notifications You must be signed in to change notification settings

adlsdztony/asession

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

asession

a user-friendly Client wrapper, which automatically handles cookies and load/store cookies from/to the specified path.

usage

use asession::SessionBuilder;

#[tokio::main]
async fn main() {
    let session: Session = SessionBuilder::new()
        .cookies_store_into("cookies.json".into())
        .build().unwrap();

    let res = session.post("https://www.example.com")
        .form(&[("key", "value")])
        .send()
        .await
        .unwrap();
}

About

a user-friendly Client wrapper, which automatically handles cookies and load/store cookies from/to the specified path

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages