ace v0.15.8 Ace.HTTP1.Parser View Source

Incrementally parse an HTTP/1.x request.

Link to this section Summary

Types

Available options when initializing a new parser

State tracking the progress of the Parser

Functions

Has the parser consumed and entire HTTP message?

Initial state for the incremental parser

Run the parser aginst a some new input

Link to this section Types

Link to this type option() View Source
option() :: {:max_line_length, integer()}

Available options when initializing a new parser

State tracking the progress of the Parser.

Link to this section Functions

Link to this function done?(arg1) View Source
done?(state()) :: boolean()

Has the parser consumed and entire HTTP message?

Initial state for the incremental parser.

Link to this function parse(binary, state, parts \\ []) View Source
parse(String.t(), state(), [Raxx.Server.part()]) ::
  {:ok, {[Raxx.Server.part()], state()}} |
  {:error, binary()}

Run the parser aginst a some new input.

This parser returns a list of parts that are in the input and an updated state.