libweb.http¶
HttpService¶
-
class
libweb.http.
HttpService
(creds=None, opts=None, **conf)[source]¶ A simple service based on HTTP requests. This class should not be used directly
-
build_request
(url, method='GET', **kwargs)[source]¶ Apply request hooks to automatically transform request content
Override this if you need to customze the Request object generated.
-
get_auth
(auth)[source]¶ Find and apply authentication
Override this if you need to support additional styles of authentication
-
process_params
(orig_params)[source]¶ Process parameters into usable pieces.
Override this if you provide any config parameters that may require interpreation, such as the relatime parameter
-
session
¶ Return a requests Session object which sets a User-Agent header
-