• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ValeriyMenshikov / restcodegen / 18804694760

25 Oct 2025 03:02PM UTC coverage: 63.12%. First build
18804694760

Pull #7

github

web-flow
Merge d3c293d65 into 43edde1f5
Pull Request #7: Closes #5

22 of 58 new or added lines in 9 files covered. (37.93%)

433 of 686 relevant lines covered (63.12%)

1.89 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/restcodegen/restclient/configuration.py
1
from typing import Any
×
2

3
from httpx import URL
×
4

5

6
class Configuration:
×
NEW
7
    def __init__(self, *, base_url: URL | str = "", disable_log: bool = False, **kwargs: Any) -> None:
×
8
        """
9
        Parameters:
10
            base_url (optional):
11
                A URL to use as the base when building request URLs.
12

13
            disable_log (bool, optional):
14
                Disables logging if set to True. Defaults to False.
15

16
            auth (optional):
17
                An authentication class to use when sending requests.
18

19
            params (optional):
20
                Query parameters to include in request URLs, as a string, dictionary,
21
                or sequence of two-tuples.
22

23
            headers (optional):
24
                Dictionary of HTTP headers to include when sending requests.
25

26
            cookies (optional):
27
                Dictionary of Cookie items to include when sending requests.
28

29
            verify (optional):
30
                Either `True` to use an SSL context with the default CA bundle,
31
                `False` to disable verification, or an instance of `ssl.SSLContext`
32
                to use a custom context.
33

34
            http2 (optional):
35
                A boolean indicating if HTTP/2 support should be enabled. Defaults to `False`.
36

37
            proxy (optional):
38
                A proxy URL where all the traffic should be routed.
39

40
            timeout (optional):
41
                The timeout configuration to use when sending requests.
42

43
            limits (optional):
44
                The limits configuration to use.
45

46
            max_redirects (optional):
47
                The maximum number of redirect responses that should be followed.
48

49
            transport (optional):
50
                A transport class to use for sending requests over the network.
51

52
            trust_env (optional):
53
                Enables or disables usage of environment variables for configuration.
54

55
            default_encoding (optional):
56
                The default encoding to use for decoding response text, if no charset
57
                information is included in a response Content-Type header. Set to a
58
                callable for automatic character set detection. Default: "utf-8".
59

60
        """
61
        self.base_url = base_url
×
62
        self.disable_log = disable_log
×
63
        self.kwargs = kwargs
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc