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

ValeriyMenshikov / restcodegen / 15833827515

23 Jun 2025 07:57PM UTC coverage: 64.627%. First build
15833827515

Pull #1

github

web-flow
Merge 3dd73feae into 92ba04ef7
Pull Request #1: Manual refactor

260 of 293 new or added lines in 12 files covered. (88.74%)

433 of 670 relevant lines covered (64.63%)

0.65 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

NEW
3
from httpx import URL
×
4

5

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

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

18
            auth (optional):
19
                An authentication class to use when sending requests.
20

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

25
            headers (optional):
26
                Dictionary of HTTP headers to include when sending requests.
27

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

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

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

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

42
            timeout (optional):
43
                The timeout configuration to use when sending requests.
44

45
            limits (optional):
46
                The limits configuration to use.
47

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

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

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

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

62
        """
63
        self.base_url = base_url
×
64
        self.disable_log = disable_log
×
65
        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