http headers APIs
pip3 install nvhead
from xdict.jprint import pobj
from xdict.jprint import pdir
import nvhead.head as nvhd
req_head_s = '''Accept-Encoding: gzip, deflate
X-OI-Thumbprint: 154cda3ef3299e031f660850b40db1d30b53aec9
User-Agent: SmartScreen/2814750890000385
Authorization: SmartScreenHash eyJhdXRoSWQiOiJhZGZmZjVhZC1lZjllLTQzYTYtYjFhMy0yYWQ0MjY3YWVlZDUiLCJoYXNoIjoielAyTmlkZDkwLzg9Iiwia2V5IjoiUXJBL3lSRHJUNCs0Y2FZRkU2T0NyQT09In0=
Content-Length: 1871
Content-Type: application/json; charset=utf-8
Connection: Keep-Alive
Cache-Control: no-cache'''
hd =nvhd.Head(req_head_s)
hd
hd.
hd.count
hd.for_req
hd.for_res
hd.accept_encoding
hd.x_oi_thumbprint
hd.user_agent
hd.authorization
hd.content_length
hd.content_type
hd.connection
hd.cache_control
├──0. init with string
├──1. init with dict<0>
├──1. init with dict<1>
├──1. init with dict<2>
├──2. init with tlist<0>
├──2. init with tlist<1>
├──3. init with res_head<0>
├──4. append<0>
├──4. append<1>
├──4. append<2>
├──4. append<3>
├──5. remove<0>
├──5. remove<1>
├──6. remove_all
├──7. prepend<0>
├──7. prepend<1>
├──8. insert
├──9. uniqualize
├──10. uniqualize_all
├──11. getitem<0>
├──11. getattr<1>
├──12. delitem<0>
├──12. delitem<1>
├──13. setitem<0>
├──13. setitem<1>
├──14. setattr<0>
├──14. setattr<1>
├──15. delattr
├──0. www_authenticate
├──1. authorization
├──2. proxy_authenticate
├──3. proxy_authorization
├──4. age
├──5. cache_control
├──6. expires
├──7. pragma
├──8. warning
├──9. accept_ch
├──10. accept_ch_lifetime
├──11. early_data
├──12. content_dpr
├──13. dpr
├──14. downlink
├──15. save_data
├──16. viewport_width
├──17. width
├──18. last_modified
├──19. etag
├──20. if_match
├──21. if_none_match
├──22. if_modified_since
├──23. if_unmodified_since
├──24. connection
├──25. keep_alive
├──26. accept
├──27. accept_charset
├──28. accept_encoding
├──29. accept_language
├──30. expect
├──31. max_forwards
├──32. cookie
├──33. set_cookie
├──34. cookie2
├──35. set_cookie2
├──36. access_control_allow_origin
├──37. access_control_allow_credentials
├──38. access_control_allow_headers
├──39. access_control_allow_methods
├──40. access_control_expose_headers
├──41. access_control_max_age
├──42. access_control_request_headers
├──43. access_control_request_method
├──44. origin
├──45. timing_allow_origin
├──46. dnt
├──47. tk
├──48. content_disposition
├──49. content_length
├──50. content_type
├──51. content_encoding
├──52. content_language
├──53. content_location
├──54. forwarded
├──55. x_forwarded_for
├──56. x_forwarded_host
├──57. x_forwarded_proto
├──58. via
├──59. location
├──60. from
├──61. host
├──62. referer
├──63. referrer_policy
├──64. user_agent
├──65. allow
├──66. server
├──67. accept_ranges
├──68. range
├──69. if_range
├──70. content_range
├──71. content_security_policy
├──72. content_security_policy_report_only
├──73. expect_ct
├──74. public_key_pins
├──75. public_key_pins_report_only
├──76. strict_transport_security
├──77. upgrade_insecure_requests
├──78. x_content_type_options
├──79. x_download_options
├──80. x_frame_options
├──81. x_permitted_cross_domain_policies
├──82. x_powered_by
├──83. x_xss_protection
├──84. ping_from
├──85. ping_to
├──86. last_event_id
├──87. transfer_encoding
├──88. te
├──89. trailer
├──90. sec_websocket_key
├──91. sec_websocket_extensions
├──92. sec_websocket_accept
├──93. sec_websocket_protocol
├──94. sec_websocket_version
├──95. date
├──96. expect_ct
├──97. large_allocation
├──98. link
├──99. retry_after
├──100. server_timing
├──101. sourcemap
├──102. upgrade
├──103. vary
├──104. x_dns_prefetch_control
├──105. x_firefox_spdy
├──106. x_requested_with
├──107. x_robots_tag
├──108. x_ua_compatible