Skip to content

Commit 28797ac

Browse files
committed
Run clang-format on the http directory.
1 parent 78de299 commit 28797ac

File tree

164 files changed

+7619
-7355
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+7619
-7355
lines changed

http/src/http/client_connection_delegates.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// http://www.boost.org/LICENSE_1_0.txt)
66

77
#ifdef NETWORK_NO_LIB
8-
#undef NETWORK_NO_LIB
8+
#undef NETWORK_NO_LIB
99
#endif
1010

1111
#include <network/protocol/http/client/connection/normal_delegate.ipp>

http/src/network/constants.hpp

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,31 @@
1010
namespace network {
1111

1212
struct constants {
13-
static char const * crlf();
14-
static char const * dot();
13+
static char const* crlf();
14+
static char const* dot();
1515
static char dot_char();
16-
static char const * http_slash();
17-
static char const * space();
16+
static char const* http_slash();
17+
static char const* space();
1818
static char space_char();
19-
static char const * slash();
19+
static char const* slash();
2020
static char slash_char();
21-
static char const * host();
22-
static char const * colon();
21+
static char const* host();
22+
static char const* colon();
2323
static char colon_char();
24-
static char const * accept();
25-
static char const * default_accept_mime();
26-
static char const * accept_encoding();
27-
static char const * default_accept_encoding();
28-
static char const * user_agent();
29-
static char const * default_user_agent();
30-
static char const * cpp_netlib_slash();
24+
static char const* accept();
25+
static char const* default_accept_mime();
26+
static char const* accept_encoding();
27+
static char const* default_accept_encoding();
28+
static char const* user_agent();
29+
static char const* default_user_agent();
30+
static char const* cpp_netlib_slash();
3131
static char question_mark_char();
3232
static char hash_char();
33-
static char const * connection();
34-
static char const * close();
35-
static char const * https();
33+
static char const* connection();
34+
static char const* close();
35+
static char const* https();
3636
};
3737

38-
} // namespace network
38+
} // namespace network
3939

40-
#endif // NETWORK_CONSTANTS_HPP_20100808
40+
#endif // NETWORK_CONSTANTS_HPP_20100808

http/src/network/constants.ipp

Lines changed: 67 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -12,113 +12,137 @@
1212

1313
namespace network {
1414

15-
char const * constants::crlf() {
15+
char const* constants::crlf() {
1616
static char crlf_[] = "\r\n";
1717
return crlf_;
1818
}
1919

20-
char const * constants::dot() {
20+
char const* constants::dot() {
2121
static char dot_[] = ".";
2222
return dot_;
2323
}
2424

2525
char constants::dot_char() { return '.'; }
2626

27-
char const * constants::http_slash() {
27+
char const* constants::http_slash() {
2828
static char http_slash_[] = "HTTP/";
2929
return http_slash_;
3030
}
3131

32-
char const * constants::space() {
33-
static char space_[] = {' ', 0};
32+
char const* constants::space() {
33+
static char space_[] = { ' ', 0 };
3434
return space_;
3535
}
3636

3737
char constants::space_char() { return ' '; }
3838

39-
char const * constants::slash() {
40-
static char slash_[] = {'/', 0};
39+
char const* constants::slash() {
40+
static char slash_[] = { '/', 0 };
4141
return slash_;
4242
}
4343

4444
char constants::slash_char() { return '/'; }
4545

46-
char const * constants::host() {
47-
static char host_[] = {'H', 'o', 's', 't', 0};
46+
char const* constants::host() {
47+
static char host_[] = { 'H', 'o', 's', 't', 0 };
4848
return host_;
4949
}
5050

51-
char const * constants::colon() {
52-
static char colon_[] = {':', 0};
51+
char const* constants::colon() {
52+
static char colon_[] = { ':', 0 };
5353
return colon_;
5454
}
5555

5656
char constants::colon_char() { return ':'; }
5757

58-
char const * constants::accept() {
59-
static char accept_[] = {'A', 'c', 'c', 'e', 'p', 't', 0};
58+
char const* constants::accept() {
59+
static char accept_[] = { 'A', 'c', 'c', 'e', 'p', 't', 0 };
6060
return accept_;
6161
}
6262

63-
char const * constants::default_accept_mime() {
64-
static char mime_[] = {
65-
'*', '/', '*', 0
66-
};
63+
char const* constants::default_accept_mime() {
64+
static char mime_[] = { '*', '/', '*', 0 };
6765
return mime_;
6866
}
6967

70-
char const * constants::accept_encoding() {
71-
static char accept_encoding_[] = {
72-
'A','c','c','e','p','t','-','E','n','c','o','d','i','n','g',0
73-
};
68+
char const* constants::accept_encoding() {
69+
static char accept_encoding_[] = { 'A',
70+
'c',
71+
'c',
72+
'e',
73+
'p',
74+
't',
75+
'-',
76+
'E',
77+
'n',
78+
'c',
79+
'o',
80+
'd',
81+
'i',
82+
'n',
83+
'g',
84+
0 };
7485
return accept_encoding_;
7586
}
7687

77-
char const * constants::default_accept_encoding() {
78-
static char default_accept_encoding_[] = {
79-
'i','d','e','n','t','i','t','y',';','q','=','1','.','0',',',' ','*',';','q','=','0',0
80-
};
88+
char const* constants::default_accept_encoding() {
89+
static char default_accept_encoding_[] = { 'i',
90+
'd',
91+
'e',
92+
'n',
93+
't',
94+
'i',
95+
't',
96+
'y',
97+
';',
98+
'q',
99+
'=',
100+
'1',
101+
'.',
102+
'0',
103+
',',
104+
' ',
105+
'*',
106+
';',
107+
'q',
108+
'=',
109+
'0',
110+
0 };
81111
return default_accept_encoding_;
82112
}
83113

84-
char const * constants::user_agent() {
85-
static char user_agent_[] = {
86-
'U','s','e','r','-','A','g','e','n','t',0
87-
};
114+
char const* constants::user_agent() {
115+
static char user_agent_[] =
116+
{ 'U', 's', 'e', 'r', '-', 'A', 'g', 'e', 'n', 't', 0 };
88117
return user_agent_;
89118
}
90119

91-
char const * constants::cpp_netlib_slash() {
92-
static char cpp_netlib_slash_[] = {
93-
'c','p','p','-','n','e','t','l','i','b','/',0
94-
};
120+
char const* constants::cpp_netlib_slash() {
121+
static char cpp_netlib_slash_[] =
122+
{ 'c', 'p', 'p', '-', 'n', 'e', 't', 'l', 'i', 'b', '/', 0 };
95123
return cpp_netlib_slash_;
96124
}
97125

98-
char constants::question_mark_char() {
99-
return '?';
100-
}
126+
char constants::question_mark_char() { return '?'; }
101127

102-
char constants::hash_char() {
103-
return '#';
104-
}
128+
char constants::hash_char() { return '#'; }
105129

106-
char const * constants::connection() {
130+
char const* constants::connection() {
107131
static char connection_[] = "Connection";
108132
return connection_;
109133
}
110134

111-
char const * constants::close() {
135+
char const* constants::close() {
112136
static char close_[] = "close";
113137
return close_;
114138
}
115139

116-
char const * constants::https() {
140+
char const* constants::https() {
117141
static char https_[] = "https";
118142
return https_;
119143
}
120144

121-
char const * constants::default_user_agent() {
145+
char const* constants::default_user_agent() {
122146
static char user_agent_[] = "cpp-netlib/" NETLIB_VERSION;
123147
return user_agent_;
124148
}

http/src/network/http/client.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
#include <network/http/response.hpp>
1414
#include <network/http/errors.hpp>
1515

16-
#endif // NETWORK_HTTP_CLIENT_INC__
16+
#endif // NETWORK_HTTP_CLIENT_INC__

http/src/network/http/errors.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88

99
#include <network/protocol/http/errors.hpp>
1010

11-
#endif // NETWORK_HTTP_ERRORS_INC__
11+
#endif // NETWORK_HTTP_ERRORS_INC__

http/src/network/http/request.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88

99
#include <network/protocol/http/request.hpp>
1010

11-
#endif // NETWORK_HTTP_REQUEST_INC__
11+
#endif // NETWORK_HTTP_REQUEST_INC__

http/src/network/http/response.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88

99
#include <network/protocol/http/response.hpp>
1010

11-
#endif // NETWORK_HTTP_RESPONSE_INC__
11+
#endif // NETWORK_HTTP_RESPONSE_INC__

http/src/network/include/http/client.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
#include <network/message/directives.hpp>
1818
#include <network/message/transformers.hpp>
1919

20-
#endif // NETWORK_INCLUDE_HTTP_CLIENT_HPP_
20+
#endif // NETWORK_INCLUDE_HTTP_CLIENT_HPP_
2121

http/src/network/include/message.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111

1212
#include <network/message.hpp>
1313

14-
#endif // NETWORK_INCLUDE_MESSAGE_HPP_
14+
#endif // NETWORK_INCLUDE_MESSAGE_HPP_
1515

http/src/network/protocol.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
// Author: Dean Michael Berris
1212
// Date Created: Oct. 08, 2007
1313

14-
#include <network/protocol/http.hpp> // include HTTP implementation
14+
#include <network/protocol/http.hpp> // include HTTP implementation
1515

16-
#endif // NETWORK_PROTOCOLS_20070908-1_HPP
16+
#endif // NETWORK_PROTOCOLS_20070908-1_HPP

0 commit comments

Comments
 (0)