BioJulia / Automa.jl

A julia code generator for regular expressions
Other
188 stars 15 forks source link

Example of inline routing of a HTTP request while parsing it #62

Closed richiejp closed 2 years ago

richiejp commented 3 years ago

First of all Automa is very nice, thanks!

Proof of concept to show that a specialised HTTP parser could be constructed with Automa where minimal processing of the HTTP request is performed by constructing a parser for a specific set of routes.

This is very rudimentry, I don't think it would be a good idea to have end users inserting regexs into the URI/HTTP parser directly, but a secondary interface could be constructed to which generates the regexs safely.