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

Method remove_header

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

Source from the content-addressed store, hash-verified

207 }
208
209 pub fn remove_header(&mut self, index: usize, cx: &mut Context<Self>) {
210 if index < self.data.headers.len() {
211 self.data.headers.remove(index);
212 cx.emit(RequestEvent::HeadersChanged);
213 cx.notify();
214 }
215 }
216
217 pub fn clear_headers(&mut self, cx: &mut Context<Self>) {
218 self.data.headers.clear();

Callers

nothing calls this directly

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected