mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci: run the gitly web server test
This commit is contained in:
parent
4333a53f28
commit
c2f535fee1
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -849,6 +849,8 @@ jobs:
|
||||
../v .
|
||||
# ./gitly -ci_run
|
||||
../v -autofree .
|
||||
../v -o x tests/first_run.v
|
||||
../x
|
||||
cd ..
|
||||
|
||||
## vex
|
||||
|
@ -5,6 +5,16 @@ module http
|
||||
|
||||
import strings
|
||||
|
||||
// Header represents the key-value pairs in an HTTP header
|
||||
[noinit]
|
||||
pub struct Header {
|
||||
mut:
|
||||
data map[string][]string
|
||||
// map of lowercase header keys to their original keys
|
||||
// in order of appearance
|
||||
keys map[string][]string
|
||||
}
|
||||
|
||||
// CommonHeader is an enum of the most common HTTP headers
|
||||
pub enum CommonHeader {
|
||||
accept
|
||||
@ -320,16 +330,6 @@ const common_header_map = {
|
||||
'x-xss-protection': .x_xss_protection
|
||||
}
|
||||
|
||||
// Header represents the key-value pairs in an HTTP header
|
||||
[noinit]
|
||||
pub struct Header {
|
||||
mut:
|
||||
data map[string][]string
|
||||
// map of lowercase header keys to their original keys
|
||||
// in order of appearance
|
||||
keys map[string][]string
|
||||
}
|
||||
|
||||
pub fn (mut h Header) free() {
|
||||
unsafe {
|
||||
h.data.free()
|
||||
|
Loading…
Reference in New Issue
Block a user