MCPcopy Create free account
hub / github.com/bajrangCoder/setu / clear_headers

Method clear_headers

src/entities/request.rs:217–221  ·  view source on GitHub ↗
(&mut self, cx: &mut Context<Self>)

Source from the content-addressed store, hash-verified

215 }
216
217 pub fn clear_headers(&mut self, cx: &mut Context<Self>) {
218 self.data.headers.clear();
219 cx.emit(RequestEvent::HeadersChanged);
220 cx.notify();
221 }
222
223 pub fn set_headers(&mut self, headers: Vec<Header>, cx: &mut Context<Self>) {
224 self.data.headers = headers;

Callers 1

clear_all_headersMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected