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

Method new

src/components/header_editor.rs:38–55  ·  view source on GitHub ↗
(request: Entity<RequestEntity>, cx: &mut Context<Self>)

Source from the content-addressed store, hash-verified

36 value: String,
37}
38
39/// Header editor
40pub struct HeaderEditor {
41 /// Optional HTTP request entity for two-way sync. Standalone mode uses
42 /// only local rows (e.g. WebSocket configuration panels).
43 request: Option<Entity<RequestEntity>>,
44 header_rows: Vec<HeaderRow>,
45 pending_initial_headers: Option<Vec<(String, String, bool)>>,
46 bulk_mode: bool,
47 bulk_editor: Option<Entity<InputState>>,
48 focus_handle: FocusHandle,
49 completion_engine: Option<CompletionEngine>,
50}
51
52impl HeaderEditor {
53 pub fn new(
54 request: Entity<RequestEntity>,
55 completion_engine: Option<CompletionEngine>,
56 cx: &mut Context<Self>,
57 ) -> Self {
58 cx.subscribe(&request, |this, _request, _event, cx| {

Callers 4

add_headerMethod · 0.45
add_header_with_valueMethod · 0.45
renderMethod · 0.45

Calls 2

focus_handleMethod · 0.45

Tested by

no test coverage detected