CodeQL library for Python
codeql/python-all 3.0.1-dev (changelog, source)
Search

Module Http::Server

Provides classes for modeling HTTP servers.

Import path

import semmle.python.Concepts

Classes

CookieWrite

A data-flow node that sets a cookie in an HTTP response.

CorsMiddleware

A data-flow node that enables or disables CORS in a global manner.

CsrfLocalProtectionSetting

A data-flow node that enables or disables Cross-site request forgery protection for a specific part of an application.

CsrfProtectionSetting

A data-flow node that enables or disables Cross-site request forgery protection in a global manner.

HttpRedirectResponse

A data-flow node that creates a HTTP redirect response on a server.

HttpResponse

A data-flow node that creates a HTTP response on a server.

RequestHandler

A function that will handle incoming HTTP requests.

ResponseHeaderBulkWrite

A data-flow node that sets multiple headers in an HTTP response using a dict or a list of tuples.

ResponseHeaderWrite

A data-flow node that sets a header in an HTTP response.

RouteSetup

A data-flow node that sets up a route on a server.

SetCookieCall

A dataflow call node to a method that sets a cookie in an http response, and has common keyword arguments secure, httponly, and samesite to set the attributes of the cookie.

Modules

CookieWrite

Provides a class for modeling new cookie writes on HTTP responses.

CorsMiddleware

Provides a class for modeling new CORS middleware APIs.

CsrfLocalProtectionSetting

Provides a class for modeling new CSRF protection setting APIs.

CsrfProtectionSetting

Provides a class for modeling new CSRF protection setting APIs.

HttpRedirectResponse

Provides a class for modeling new HTTP redirect response APIs.

HttpResponse

Provides a class for modeling new HTTP response APIs.

RequestHandler

Provides a class for modeling new HTTP request handlers.

ResponseHeaderBulkWrite

Provides a class for modeling bulk header writes on HTTP responses.

ResponseHeaderWrite

Provides a class for modeling header writes on HTTP responses.

RouteSetup

Provides a class for modeling new HTTP routing APIs.