Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for Clulow (0.18 sec)

  1. tests/test_tutorial/test_cors/test_tutorial001.py

        assert response.status_code == 200, response.text
        assert response.text == "OK"
        assert (
            response.headers["access-control-allow-origin"]
            == "https://localhost.tiangolo.com"
        )
        assert response.headers["access-control-allow-headers"] == "X-Example"
    
        # Test standard response
        headers = {"Origin": "https://localhost.tiangolo.com"}
        response = client.get("/", headers=headers)
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jul 09 18:06:12 GMT 2020
    - 1.2K bytes
    - Viewed (0)
  2. configure.py

    
    def write_action_env_to_bazelrc(var_name, var):
      write_to_bazelrc('build --action_env {}="{}"'.format(var_name, str(var)))
    
    
    def run_shell(cmd, allow_non_zero=False, stderr=None):
      if stderr is None:
        stderr = sys.stdout
      if allow_non_zero:
        try:
          output = subprocess.check_output(cmd, stderr=stderr)
        except subprocess.CalledProcessError as e:
          output = e.output
      else:
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 18:25:36 GMT 2024
    - 53.8K bytes
    - Viewed (0)
  3. fastapi/routing.py

                    This is much simpler (less smart) than `response_model_exclude_unset`
                    and `response_model_exclude_defaults`. You probably want to use one of
                    those two instead of this one, as those allow returning `None` values
                    when it makes sense.
    
                    Read more about it in the
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
  4. fastapi/_compat.py

                    exclude_defaults=exclude_defaults,
                    exclude_none=exclude_none,
                )
    
            def __hash__(self) -> int:
                # Each ModelField is unique for our purposes, to allow making a dict from
                # ModelField to its JSON Schema.
                return id(self)
    
        def get_annotation_from_field_info(
            annotation: Any, field_info: FieldInfo, field_name: str
        ) -> Any:
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
Back to top