Skip to content
GitLab
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
TTCN-3 Libraries
LibIts
Compare revisions
c7d7b24f14bed9f6088cc9df85d9f45327f4db96...1451dd87f9c492f4afcb9def9ec05a000e7b3f5a
Commits (2)
Use PICs for HTTP version
· 6c4f7baa
Yann Garcia
authored
Jan 28, 2019
6c4f7baa
Merge branch 'STF525' of
https://forge.etsi.org/gitlab/LIBS/LibIts
into STF525
· 1451dd87
Yann Garcia
authored
Jan 28, 2019
1451dd87
Hide whitespace changes
Inline
Side-by-side
ttcn/Http/LibItsHttp_Pics.ttcn
View file @
1451dd87
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 @
1451dd87
...
...
@@ -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
{
...
...