def phrase.to.step

emerging-ezhttp@0.21.0.0 · src/http.bend:1804

import emerging-ezhttp@0.21.0.0/src/http.bend as Http
import Base

1804# an interim head is skipped, any other gives the reason on its first line
1805def phrase.to.step(
1806  +ls: List<&2, String>,
1807  +after: String,
1808  skip: Bool,
1809  rest: Cut -> String
1810) -> String:
1811  match skip:
1812    case True{}:
1813      rest(divide(after, "\r\n\r\n"))
1814    case False{}:
1815      phrase.line(first(ls))

Uses (7)

Used by (1)