Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Message refactor#631

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
deanberris merged 11 commits intocpp-netlib:masterfromglynos:message_refactor
Apr 11, 2016
Merged
Changes from1 commit
Commits
Show all changes
11 commits
Select commitHold shift + click to select a range
858eea7
Added image to the license in README.rst.
glynosApr 4, 2016
0187ec1
Removed some redundant headers.
glynosApr 2, 2016
047d89c
Added a first test in order to start refactoring the HTTP request/res…
glynosApr 3, 2016
40bab67
Since I removed the include directory in a previous commit, I have no…
glynosApr 3, 2016
175cdd3
Updated the examples that used the include directory that I removed.
glynosApr 3, 2016
5614b43
Removed boost/network.hpp
glynosApr 9, 2016
2f61e45
Fixed string constants.
glynosApr 10, 2016
4c9fbda
Added a unit tests for the HTTP client request.
glynosApr 10, 2016
5f6ab56
Added a unit test for the HTTP client response.
glynosApr 10, 2016
99c777c
Removed some headers that looked redundant.
glynosApr 10, 2016
1e14f3c
Refactored HTTP client request and response.
glynosApr 10, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Fixed string constants.
  • Loading branch information
@glynos
glynos committedApr 10, 2016
commit2f61e4508579dcc0f10193d71f19e56c84493428
36 changes: 15 additions & 21 deletionsboost/network/constants.hpp
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -18,80 +18,75 @@ template <class Tag>
structconstants_narrow {

staticcharconst*crlf() {
staticchar crlf_[] ={'\r','\n',0};
staticchar crlf_[] ="\r\n";
return crlf_;
}

staticcharconst*dot() {
staticchar dot_[] ={'.',0};
staticchar dot_[] =".";
return dot_;
}

staticchardot_char() {return'.'; }

staticcharconst*http_slash() {
staticchar http_slash_[] ={'H','T','T','P','/',0};
staticchar http_slash_[] ="HTTP/";
return http_slash_;
}

staticcharconst*space() {
staticchar space_[] ={'',0};
staticchar space_[] ="";
return space_;
}

staticcharspace_char() {return''; }

staticcharconst*slash() {
staticchar slash_[] ={'/',0};
staticchar slash_[] ="/";
return slash_;
}

staticcharslash_char() {return'/'; }

staticcharconst*host() {
staticchar host_[] ={'H','o','s','t',0};
staticchar host_[] ="Host";
return host_;
}

staticcharconst*colon() {
staticchar colon_[] ={':',0};
staticchar colon_[] =":";
return colon_;
}

staticcharcolon_char() {return':'; }

staticcharconst*accept() {
staticchar accept_[] ={'A','c','c','e','p','t',0};
staticchar accept_[] ="Accept";
return accept_;
}

staticcharconst*default_accept_mime() {
staticchar mime_[] ={'*','/','*',0};
staticchar mime_[] ="*/*";
return mime_;
}

staticcharconst*accept_encoding() {
staticchar accept_encoding_[] = {'A','c','c','e','p','t','-','E',
'n','c','o','d','i','n','g',0};
staticchar accept_encoding_[] ="Accept-Encoding";
return accept_encoding_;
}

staticcharconst*default_accept_encoding() {
staticchar default_accept_encoding_[] = {
'i','d','e','n','t','i','t','y',';','q','=',
'1','.','0',',','','*',';','q','=','0',0};
staticchar default_accept_encoding_[] ="identity;q=1.0, *;q=0";
return default_accept_encoding_;
}

staticcharconst*user_agent() {
staticchar user_agent_[] = {'U','s','e','r','-','A',
'g','e','n','t',0};
staticchar user_agent_[] ="User-Agent";
return user_agent_;
}

staticcharconst*cpp_netlib_slash() {
staticchar cpp_netlib_slash_[] = {'c','p','p','-','n','e',
't','l','i','b','/',0};
staticchar cpp_netlib_slash_[] ="cpp-netlib/";
return cpp_netlib_slash_;
}

Expand All@@ -100,13 +95,12 @@ struct constants_narrow {
staticcharhash_char() {return'#'; }

staticcharconst*connection() {
staticchar connection_[] = {'C','o','n','n','e','c',
't','i','o','n',0};
staticchar connection_[] ="Connection";
return connection_;
}

staticcharconst*close() {
staticchar close_[] ={'C','l','o','s','e',0};
staticchar close_[] ="Close";
return close_;
}

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp