class Prax::Parser

Defined in:

prax/parser.cr
prax/parser/common.cr
prax/parser/header.cr
prax/parser/request.cr
prax/parser/response.cr

Constant Summary

HEADER_RE = /([^:]+):(?:\s+(.+))?/
REQUEST_LINE_RE = /\A([A-Z]+)[ \t]+(.+?)[ \t]+(HTTP\/[\d.]+)\Z/
STATUS_LINE_RE = /\A(HTTP\/[\d.]+)[ \t]+(\d+)[ \t]+(.+?)\Z/

Constructors

Instance Method Summary

Constructor Detail

def self.new(socket : TCPSocket | OpenSSL::SSL::Socket) #

[View source]

Instance Method Detail

def parse_request #

[View source]
def parse_response #

[View source]