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

Method upsert_request_header

src/views/request_view.rs:245–260  ·  view source on GitHub ↗
(&self, key: &str, value: &str, cx: &mut Context<Self>)

Source from the content-addressed store, hash-verified

243 let completion_engine = self.completion_engine.clone();
244 self.multipart_form_data_editor = Some(cx.new(|cx| {
245 let mut editor = MultipartFormDataEditor::new(completion_engine.clone(), cx);
246 if let Some(data) = initial_data {
247 editor.set_from_multipart_fields(&data, window, cx);
248 }
249 editor
250 }));
251 }
252 }
253
254 fn ensure_header_editor(&mut self, cx: &mut Context<Self>) {
255 if self.header_editor.is_none() {
256 let request = self.request.clone();
257 let completion_engine = self.completion_engine.clone();
258 self.header_editor =
259 Some(cx.new(|cx| HeaderEditor::new(request, completion_engine.clone(), cx)));
260 }
261 }
262
263 fn ensure_auth_editor(&mut self, window: &mut Window, cx: &mut Context<Self>) {

Callers 1

sync_body_type_headerMethod · 0.80

Calls 2

headersMethod · 0.80
set_headersMethod · 0.80

Tested by

no test coverage detected