Home Reference Source
import {Parser} from './terrier-repo/bodyparser/mod.ts'
public class | source

Parser

Body parser for Terrier

Constructor Summary

Public Constructor
public

constructor(url: *)

Initiate the body parser with the request URL

Member Summary

Public Members
public

Get the request URL without query string

public

Get the query string from URL

public

Get seperated raw queries

public

Get the value of a query

public

url: {"PathWithoutQueryString": *, "QueryString": *, "SeperatedQueries": *}

Public Constructors

public constructor(url: *) source

Initiate the body parser with the request URL

Params:

NameTypeAttributeDescription
url *

The request URL

Public Members

public getPathWithoutQuery: * source

Get the request URL without query string

public getQueryString: * source

Get the query string from URL

public getSeperatedQueries: * source

Get seperated raw queries

public getValue: * source

Get the value of a query

public url: {"PathWithoutQueryString": *, "QueryString": *, "SeperatedQueries": *} source