Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support base64_body #1

Open
yoshuawuyts opened this issue Sep 13, 2021 · 0 comments
Open

Support base64_body #1

yoshuawuyts opened this issue Sep 13, 2021 · 0 comments

Comments

@yoshuawuyts
Copy link
Member

According to this VCR cassette files should be able to support base64 encoded strings too. This means we need to add support for base64_body to our Body type.

Examples

pub enum BodyKind {
    Base64,
    String,
}
pub struct Body {
    pub encoding: Option<String>,
    pub string: String,
    pub kind: BodyKind,
}

or

pub enum BodyString {
    Base64(String),
    String(String),
}
pub struct Body {
    pub encoding: Option<String>,
    pub string: BodyString,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant