Skip to content

HTTP

HTTP request utilities.

1 modules

ModuleDescription
HTTP GETHTTP GET 요청을 보내고 응답 받기

Modules

HTTP GET

http.get

HTTP GET 요청을 보내고 응답 받기

Parameters:

NameTypeRequiredDefaultDescription
urlstringYes-GET 요청을 보낼 URL
headersobjectNo{}키-값 객체로 된 요청 헤더
queryobjectNo{}키-값 객체로 된 쿼리 문자열 매개변수
timeoutnumberNo30밀리초 단위의 요청 시간 초과
verify_sslbooleanNoTrueVerify SSL certificates

Output:

FieldTypeDescription
okboolean요청이 성공했는지 여부 (2xx 상태)
statusnumberHTTP 상태 코드
bodyany응답 본문 (파싱된 JSON 또는 텍스트)
headersobject응답 헤더

Released under the Apache 2.0 License.