Skip to content

httpclient ssl options issue #24394

Open
Open
@vchettur

Description

@vchettur

Description

When I type the example under the std/httpclient (https://nim-lang.org/docs/httpclient.html#sslslashtls-support):

import httpclient
var client = newHttpClient(sslContext=newContext(verifyMode=CVerifyPeer))

I get the following:
undeclared identifier: 'newContext'
candidates (edit distance, scope distance); see '--spellSuggest':
(3, 3): 'getContent'nim(nimsuggest chk)
undeclared identifier: 'newContext'

candidates (edit distance, scope distance); see '--spellSuggest':
(3, 3): 'getContent'
t1.newContext: Error Type
Compilation gives me the same error.

Nim Version

version 2.2

Current Output

No response

Expected Output

No response

Known Workarounds

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions