andreypopp / andreypopp/ppx_deriving_router

Add `of_string` helpers

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
OCaml
Stars
27
Forks
6
PR merge metrics
No merged PRs in 30d

Description

It might be useful to be able to parse paths into data, for example for universal routing.

Currently, it's not exposed:
```
For Melange the ppx will emit:

val http_method : _ t -> [ `DELETE | `GET | `POST | `PUT ]
val href : 'a t -> string
val body : 'a t -> string option
val decode_response : 'a t -> Fetch.Response.t -> 'a Js.Promise.t
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.