Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Titanium-Web-Proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Titanium-Web-Proxy
Commits
acb334ac
Commit
acb334ac
authored
Jun 16, 2017
by
justcoding121
Committed by
justcoding121
Jun 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
expose some more public properties
parent
22345d87
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
24 deletions
+21
-24
Request.cs
Titanium.Web.Proxy/Http/Request.cs
+8
-6
Response.cs
Titanium.Web.Proxy/Http/Response.cs
+13
-13
ResponseHandler.cs
Titanium.Web.Proxy/ResponseHandler.cs
+0
-5
No files found.
Titanium.Web.Proxy/Http/Request.cs
View file @
acb334ac
...
...
@@ -33,9 +33,11 @@ namespace Titanium.Web.Proxy.Http
public
bool
HasBody
=>
Method
==
"POST"
||
Method
==
"PUT"
||
Method
==
"PATCH"
;
/// <summary>
/// Request Http hostanem
/// Http hostname header value if exists
/// Note: Changing this does NOT change host in RequestUri
/// Users can set new RequestUri separately
/// </summary>
internal
string
Host
public
string
Host
{
get
{
...
...
@@ -57,9 +59,9 @@ namespace Titanium.Web.Proxy.Http
}
/// <summary>
///
Request content encoding
///
Content encoding header value
/// </summary>
internal
string
ContentEncoding
public
string
ContentEncoding
{
get
{
...
...
@@ -231,7 +233,7 @@ namespace Titanium.Web.Proxy.Http
/// <summary>
/// Encoding for this request
/// </summary>
internal
Encoding
Encoding
=>
this
.
GetEncoding
();
public
Encoding
Encoding
=>
this
.
GetEncoding
();
/// <summary>
/// Terminates the underlying Tcp Connection to client after current request
...
...
@@ -261,7 +263,7 @@ namespace Titanium.Web.Proxy.Http
/// <summary>
/// Does this request has an upgrade to websocket header?
/// </summary>
internal
bool
UpgradeToWebSocket
public
bool
UpgradeToWebSocket
{
get
{
...
...
Titanium.Web.Proxy/Http/Response.cs
View file @
acb334ac
...
...
@@ -23,12 +23,15 @@ namespace Titanium.Web.Proxy.Http
/// </summary>
public
string
ResponseStatusDescription
{
get
;
set
;
}
internal
Encoding
Encoding
=>
this
.
GetResponseCharacterEncoding
();
/// <summary>
/// Encoding used in response
/// </summary>
public
Encoding
Encoding
=>
this
.
GetResponseCharacterEncoding
();
/// <summary>
/// Content encoding for this response
/// </summary>
internal
string
ContentEncoding
public
string
ContentEncoding
{
get
{
...
...
@@ -41,12 +44,15 @@ namespace Titanium.Web.Proxy.Http
}
}
internal
Version
HttpVersion
{
get
;
set
;
}
/// <summary>
/// Http version
/// </summary>
public
Version
HttpVersion
{
get
;
set
;
}
/// <summary>
/// Keep the connection alive?
/// </summary>
internal
bool
ResponseKeepAlive
public
bool
ResponseKeepAlive
{
get
{
...
...
@@ -89,7 +95,7 @@ namespace Titanium.Web.Proxy.Http
/// <summary>
/// Length of response body
/// </summary>
internal
long
ContentLength
public
long
ContentLength
{
get
{
...
...
@@ -142,7 +148,7 @@ namespace Titanium.Web.Proxy.Http
/// <summary>
/// Response transfer-encoding is chunked?
/// </summary>
internal
bool
IsChunked
public
bool
IsChunked
{
get
{
...
...
@@ -198,14 +204,8 @@ namespace Titanium.Web.Proxy.Http
/// </summary>
public
Dictionary
<
string
,
List
<
HttpHeader
>>
NonUniqueResponseHeaders
{
get
;
set
;
}
/// <summary>
/// Response network stream
/// </summary>
public
Stream
ResponseStream
{
get
;
set
;
}
/// <summary>
/// response body conten
s
t as byte array
/// response body content as byte array
/// </summary>
internal
byte
[]
ResponseBody
{
get
;
set
;
}
...
...
Titanium.Web.Proxy/ResponseHandler.cs
View file @
acb334ac
...
...
@@ -31,11 +31,6 @@ namespace Titanium.Web.Proxy
//read response & headers from server
await
args
.
WebSession
.
ReceiveResponse
();
if
(!
args
.
WebSession
.
Response
.
ResponseBodyRead
)
{
args
.
WebSession
.
Response
.
ResponseStream
=
args
.
WebSession
.
ServerConnection
.
Stream
;
}
//check for windows authentication
if
(
EnableWinAuth
&&
!
RunTime
.
IsRunningOnMono
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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