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

Function basic_auth_generates_expected_header

src/components/auth_editor.rs:216–231  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

214 api_key_name_input: Option<gpui::Entity<InputState>>,
215 api_key_value_input: Option<gpui::Entity<InputState>>,
216 api_key_location: ApiKeyLocation,
217 api_key_location_select: Entity<SelectState<Vec<ApiKeyLocation>>>,
218
219 focus_handle: FocusHandle,
220 completion_engine: Option<CompletionEngine>,
221}
222
223impl AuthEditor {
224 pub fn new(
225 window: &mut Window,
226 completion_engine: Option<CompletionEngine>,
227 cx: &mut Context<Self>,
228 ) -> Self {
229 // Create auth type select state
230 let auth_type_items: Vec<AuthType> = AuthType::all().to_vec();
231 let auth_type_select = cx.new(|cx| {
232 SelectState::new(
233 auth_type_items,
234 Some(gpui_component::IndexPath::new(0)),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected