a-poor / a-poor/vhttp

Add `proto` validators

オープン
#4 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Go
スター
2
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

説明

Add [ProtoValidator](https://pkg.go.dev/github.com/a-poor/vhttp#ProtoValidator) functions.

`ProtoValidator` functions implements both the [RequestValidator](https://pkg.go.dev/github.com/a-poor/vhttp#RequestValidator) and [ResponseValidator](https://pkg.go.dev/github.com/a-poor/vhttp#ResponseValidator) interfaces and have the following signature...

```go
type ProtoValidator func(string) error
```

...where the argument is the `.Proto` attribute for either the [http.Request](https://pkg.go.dev/net/http#Request) or [http.Response](https://pkg.go.dev/net/http#Response), depending on how it's used.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。