Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
igwn-auth-utils 1.4.0
igwn-auth-utils 1.4.0

Using credentials

  • HTTP(S) requests
    • get
    • request
    • HTTPSciTokenAuth
    • Session
    • SessionAuthMixin
    • delete
    • head
    • patch
    • post
    • put

Credential utilities

  • Kerberos
    • kinit
  • SciTokens
    • find_scitoken
    • get_scitoken
    • scitoken_authorization_header
  • X.509
    • find_x509_credentials

API reference

  • igwn_auth_utils
    • find_scitoken
    • find_x509_credentials
    • get
    • get_scitoken
    • kinit
    • request
    • scitoken_authorization_header
    • HTTPSciTokenAuth
    • IgwnAuthError
    • Session
    • SessionAuthMixin
    • SessionErrorMixin
  • igwn_auth_utils.requests
    • delete
    • head
    • patch
    • post
    • put
  • igwn_auth_utils.scitokens
    • default_bearer_token_file
    • deserialize_token
    • get_scitoken
    • is_valid_token
    • load_token_file
    • target_audience
    • Enforcer
  • igwn_auth_utils.x509
    • is_valid_certificate
    • load_x509_certificate_file
    • validate_certificate
    • x509_deprecation
Back to top
View this page

head¶

igwn_auth_utils.requests.head(url, *args, session=None, **kwargs)¶

Send an HTTP HEAD request to the specified URL with IGWN Auth attached.

Parameters:
  • url (str) – The URL to request.

  • session (requests.Session, optional) – The connection session to use, if not given one will be created on-the-fly.

  • args – All other keyword arguments are passed directly to requests.Session.head()

  • kwargs – All other keyword arguments are passed directly to requests.Session.head()

Returns:

resp – the response object

Return type:

requests.Response

See also

requests.Session.head

for information on how the request is performed

Next
patch
Previous
delete
Copyright © 2021-2025 Cardiff University
Made with Sphinx and @pradyunsg's Furo
On this page
  • head
    • head()