Debian Codegraph @

crt/aws-c-http/README.md

raw symbols SCIP
1 ## AWS C Http
2
3 C99 implementation of the HTTP/1.1 and HTTP/2 specifications
4
5 ## License
6
7 This library is licensed under the Apache 2.0 License.
8
9 ## Usage
10
11 ### Building
12
13 CMake 3.9+ is required to build.
14
15 `<install-path>` must be an absolute path in the following instructions.
16
17 #### Linux-Only Dependencies
18
19 If you are building on Linux, you will need to build aws-lc and s2n-tls first.
20
21 ```
22 git clone [email protected]:awslabs/aws-lc.git
23 cmake -S aws-lc -B aws-lc/build -DCMAKE_INSTALL_PREFIX=<install-path>
24 cmake --build aws-lc/build --target install
25
26 git clone [email protected]:aws/s2n-tls.git
27 cmake -S s2n-tls -B s2n-tls/build -DCMAKE_INSTALL_PREFIX=<install-path> -DCMAKE_PREFIX_PATH=<install-path>
28 cmake --build s2n-tls/build --target install
29 ```
30
31 #### Building aws-c-http and Remaining Dependencies
32
33 ```
34 git clone [email protected]:awslabs/aws-c-common.git
35 cmake -S aws-c-common -B aws-c-common/build -DCMAKE_INSTALL_PREFIX=<install-path>
36 cmake --build aws-c-common/build --target install
37
38 git clone [email protected]:awslabs/aws-c-cal.git
39 cmake -S aws-c-cal -B aws-c-cal/build -DCMAKE_INSTALL_PREFIX=<install-path> -DCMAKE_PREFIX_PATH=<install-path>
40 cmake --build aws-c-cal/build --target install
41
42 git clone [email protected]:awslabs/aws-c-io.git
43 cmake -S aws-c-io -B aws-c-io/build -DCMAKE_INSTALL_PREFIX=<install-path> -DCMAKE_PREFIX_PATH=<install-path>
44 cmake --build aws-c-io/build --target install
45
46 git clone [email protected]:awslabs/aws-c-compression.git
47 cmake -S aws-c-compression -B aws-c-compression/build -DCMAKE_INSTALL_PREFIX=<install-path> -DCMAKE_PREFIX_PATH=<install-path>
48 cmake --build aws-c-compression/build --target install
49
50 git clone [email protected]:awslabs/aws-c-http.git
51 cmake -S aws-c-http -B aws-c-http/build -DCMAKE_INSTALL_PREFIX=<install-path> -DCMAKE_PREFIX_PATH=<install-path>
52 cmake --build aws-c-http/build --target install
53 ```
54
55 #### Run Integration Tests with localhost
56
57 To run some of the integration tests (start with localhost_integ_*), you need to set up a localhost that echo the request headers from `/echo` back first.
58
59 To do that, check [localhost](./tests/mock_server/) script we have.
60
61 After that, configure and build your cmake project with `-DENABLE_LOCALHOST_INTEGRATION_TESTS=true` to build the tests with localhost and run them from `ctest --output-on-failure -R localhost_integ_*`.