Skip to content

Commit d8eac5e

Browse files
authored
Added http_client_proxy setting field into Apigee edge administration configuration (#475)
1 parent c1a6134 commit d8eac5e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Form/ConnectionConfigForm.php

+9
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ public function buildForm(array $form, FormStateInterface $form_state) {
6767
'#required' => TRUE,
6868
];
6969

70+
$form['http_proxy'] = [
71+
'#type' => 'textfield',
72+
'#title' => $this->t('HTTP client proxy'),
73+
'#description' => $this->t('The Http proxy used to connect to Apigee Edge.'),
74+
'#default_value' => $this->config('apigee_edge.client')->get('http_client_proxy'),
75+
'#required' => FALSE,
76+
];
77+
7078
return parent::buildForm($form, $form_state);
7179
}
7280

@@ -77,6 +85,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
7785
$this->config('apigee_edge.client')
7886
->set('http_client_connect_timeout', $form_state->getValue('connect_timeout'))
7987
->set('http_client_timeout', $form_state->getValue('request_timeout'))
88+
->set('http_client_proxy', $form_state->getValue('http_proxy'))
8089
->save();
8190
parent::submitForm($form, $form_state);
8291
}

0 commit comments

Comments
 (0)