Packages

A simple and easy to use API created on top of the Mist web server

Current section

Files

Jump to
howdy src howdy@context.erl
Raw

src/howdy@context.erl

-module(howdy@context).
-compile(no_auto_import).
-export([new/2]).
-export_type([context/0]).
-type context() :: {context,
list(howdy@url_parser:url_segment()),
gleam@http@request:request(bitstring()),
gleam@option:option(howdy@context@user:user())}.
-spec new(
list(howdy@url_parser:url_segment()),
gleam@http@request:request(bitstring())
) -> context().
new(Url, Request) ->
{context, Url, Request, none}.