From 2edafff0f5f9af2078a7e921300bae075ff688fc Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Wed, 25 Apr 2018 17:00:51 +0200 Subject: [PATCH] created alias for [][]byte (HeaderValue) for better readability --- internal/http/upgrade/request/parser/header/types.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/http/upgrade/request/parser/header/types.go b/internal/http/upgrade/request/parser/header/types.go index e72c27e..994e7df 100644 --- a/internal/http/upgrade/request/parser/header/types.go +++ b/internal/http/upgrade/request/parser/header/types.go @@ -14,9 +14,12 @@ const ( WSVERSION ) +// HeaderValue represents a unique or multiple header value(s) +type HeaderValue [][]byte + // T represents the data of a HTTP request header type T struct{ Name HeaderType - Values [][]byte + Values HeaderValue } \ No newline at end of file