Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TTCN-3 Libraries
LibIts
Commits
6c4f7baa
Commit
6c4f7baa
authored
Jan 28, 2019
by
Yann Garcia
Browse files
Use PICs for HTTP version
parent
55d84608
Changes
2
Hide whitespace changes
Inline
Side-by-side
ttcn/Http/LibItsHttp_Pics.ttcn
View file @
6c4f7baa
module
LibItsHttp_Pics
{
/**
* @desc
*/
modulepar
charstring
PICS_HEADER_HOST
:=
"www.lisp.com"
;
/**
* @desc
*/
modulepar
charstring
PICS_HEADER_CONTENT_TYPE
:=
"application/x-its-request"
;
/**
* @desc HTTP major version
*/
modulepar
integer
PICS_HTTP_VERSION_MAJOR
:=
1
;
/**
* @desc HTTP minor version
*/
modulepar
integer
PICS_HTTP_VERSION_MINOR
:=
1
;
/**
* @desc
*/
modulepar
charstring
PICS_HEADER_HOST
:=
"www.lisp.com"
;
/**
* @desc
*/
modulepar
charstring
PICS_HEADER_CONTENT_TYPE
:=
"application/x-its-request"
;
}
// End of module LibItsHttp_Pics
ttcn/Http/LibItsHttp_TypesAndValues.ttcn
View file @
6c4f7baa
...
...
@@ -14,6 +14,7 @@ module LibItsHttp_TypesAndValues {
// LibHttp
import
from
LibItsHttp_MessageBodyTypes
all
;
import
from
LibItsHttp_XmlMessageBodyTypes
all
;
import
from
LibItsHttp_Pics
all
;
const
charstring
c_header_host
:=
"Host"
;
const
charstring
c_header_content_type
:=
"Content-Type"
;
...
...
@@ -24,8 +25,8 @@ module LibItsHttp_TypesAndValues {
const
charstring
c_header_pragma
:=
"Pragma"
;
const
charstring
c_header_cache_control
:=
"Cache-Control"
;
const
integer
c_http_version_major
:=
1
;
const
integer
c_http_version_minor
:=
1
;
const
integer
c_http_version_major
:=
PICS_HTTP_VERSION_MAJOR
;
const
integer
c_http_version_minor
:=
PICS_HTTP_VERSION_MINOR
;
type
record
of
charstring
charstring_list
;
type
record
HeaderLine
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment