(headers_params: Any, gbls: Optional[Any] = None)
| 19 | |
| 20 | |
| 21 | def get_headers(headers_params: Any, gbls: Optional[Any] = None) -> Dict[str, str]: |
| 22 | headers: Dict[str, str] = {} |
| 23 | |
| 24 | globals_already_populated = [] |
| 25 | if _is_set(headers_params): |
| 26 | globals_already_populated = _populate_headers(headers_params, gbls, headers, []) |
| 27 | if _is_set(gbls): |
| 28 | _populate_headers(gbls, None, headers, globals_already_populated) |
| 29 | |
| 30 | return headers |
| 31 | |
| 32 | |
| 33 | def _populate_headers( |
nothing calls this directly
no test coverage detected