MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / is_server_error

Method is_server_error

api_client/src/lib.rs:68–73  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

66 }
67
68 fn is_server_error(self) -> bool {
69 !matches!(
70 self,
71 StatusCode::Ok | StatusCode::Continue | StatusCode::NoContent
72 )
73 }
74}
75
76fn get_header<'a>(res: &'a str, header: &'a str) -> Option<&'a str> {

Callers 1

parse_http_responseFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected