Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Section

Hierarchy

  • Section<"idle" | "request_line" | "headers" | "end">
    • Section

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Section(sections?: ["idle", "request_line", "headers", "end"]): Section
  • Parameters

    • Default value sections: ["idle", "request_line", "headers", "end"] = ["idle", "request_line", "headers", "end"] as ["idle", "request_line", "headers", "end"]

    Returns Section

Properties

sections

sections: ("idle" | "request_line" | "headers" | "end")[]

Methods

get

  • get(): S

is

  • is(section: "idle" | "request_line" | "headers" | "end"): boolean

next

  • next(): number

previous

  • previous(): number

set

  • set(section: "idle" | "request_line" | "headers" | "end"): number

Generated using TypeDoc