{"version":3,"file":"method.cjs","names":[],"sources":["../../src/utils/method.ts"],"sourcesContent":["import type { PFrameInternal } from \"@milaboratories/pl-model-middle-layer\";\nimport type { IncomingHttpHeaders } from \"node:http\";\n\nexport function isGetOrHead(\n  method: IncomingHttpHeaders[\"method\"],\n): method is PFrameInternal.HttpMethod {\n  return method === \"GET\" || method === \"HEAD\";\n}\n\nexport function isGet(\n  method: PFrameInternal.HttpMethod,\n): method is Extract<PFrameInternal.HttpMethod, \"GET\"> {\n  return method === \"GET\";\n}\n\nexport function isHead(\n  method: PFrameInternal.HttpMethod,\n): method is Extract<PFrameInternal.HttpMethod, \"HEAD\"> {\n  return method === \"HEAD\";\n}\n"],"mappings":";AAGA,SAAgB,YACd,QACqC;AACrC,QAAO,WAAW,SAAS,WAAW;;AAGxC,SAAgB,MACd,QACqD;AACrD,QAAO,WAAW;;AAGpB,SAAgB,OACd,QACsD;AACtD,QAAO,WAAW"}