web_push::request_builder

Function parse_response

Source
pub fn parse_response(
    response_status: StatusCode,
    body: Vec<u8>,
) -> Result<(), WebPushError>
Expand description

Parses the response from the push service, and will return Err if the request was bad.