JetBrains Rider 2022.1 Help

Code Inspections in HTTP Client

This topic lists all JetBrains Rider code inspections available in HTTP Client.

You can toggle specific inspections or change their severity level on the Editor | Inspection Settings | Inspection Severity | Other Languages page of the IDE settings Ctrl+Alt+S.

Inspection

Description

Default Severity

'$placeholder' in HTTP Request

Reports a $placeholder inside a request.

A $placeholder to be replaced by the user is created automatically when a tool cannot recognize a part of a request. For example, a request mapping /aaaa/*/bbb will be generated as GET localhost/aaaa/{{$placeholder}}/bbb.

Warning Warning

Incorrect HTTP header

Reports unknown HTTP headers that do not match any publicly known headers. The quick fix suggests adding the header to the list of custom headers when the Use custom HTTP headers option is enabled. HTTP headers from the list of custom headers will not trigger the inspection.

Warning Warning

Redundant 'Content-Length'

Reports an explicitly set Content-Length header. The header is redundant because HTTP Client uses the actual request body length.

Warning Warning

Unresolved environment variable

Reports undeclared in the current environment HTTP Client variables.

Executing request with undeclared variables probably fail. Consider adding a variable to the environment or switching on an environment with this variable.

Inspection doesn't report variables in request bodies, because it can be a valid syntax of the body.

Some variables may be not reported as unresolved, because they are declared in response handlers scripts via client.global.set function call.

Warning Warning

Last modified: 13 May 2022