⚡ Sangsakala Proxy 🏠 Home
Skip to content
This repository was archived by the owner on Jul 31, 2022. It is now read-only.

Commit 8301673

Browse files
committed
fix links
1 parent 15c4018 commit 8301673

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎docs/exchange/cookies.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: |
66

77
# Retrieving Cookies
88

9-
To retrieve cookies from an exchange you use the `getCookies` method on a [simple http exchange](https://github.com/Ktt-Development/simplehttpserver/tree/main/docs/exchange/simple-http-exchange.md).
9+
To retrieve cookies from an exchange you use the `getCookies` method on a [simple http exchange](https://github.com/Ktt-Development/simplehttpserver/blob/main/docs/exchange/simple-http-exchange.md).
1010

1111
```java
1212
SimpleHttpHandler handler = new SimpleHttpHandler(){
@@ -21,11 +21,11 @@ SimpleHttpHandler handler = new SimpleHttpHandler(){
2121

2222
# Creating and Modifying Cookies
2323

24-
For simple key-value cookies, the `setCookie` method on a [simple http exchange](https://github.com/Ktt-Development/simplehttpserver/tree/main/docs/exchange/simple-http-exchange.md) can be used.
24+
For simple key-value cookies, the `setCookie` method on a [simple http exchange](https://github.com/Ktt-Development/simplehttpserver/blob/main/docs/exchange/simple-http-exchange.md) can be used.
2525

2626
For cookies with additional parameters the `SimpleHttpCookie.Builder` can be used instead.
2727

28-
The exchange **must** be [sent](https://github.com/Ktt-Development/simplehttpserver/tree/main/docs/exchange/simple-http-exchange#sending-data.md) in order for the cookies to be set.
28+
The exchange **must** be [sent](https://github.com/Ktt-Development/simplehttpserver/blob/main/docs/exchange/simple-http-exchange#sending-data.md) in order for the cookies to be set.
2929

3030
```java
3131
SimpleHttpHandler handler = new SimpleHttpHandler(){

‎docs/exchange/simple-http-exchange.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ SimpleHttpHandler handler = new SimpleHttpHandler(){
5656

5757
# Response
5858

59-
To send response headers you would first modify the headers inside the `getResponseHeaders` method, and then send them using the `sendResponseHeaders` method. This process is simplified by using any of the [`send`](https://github.com/Ktt-Development/simplehttpserver/tree/main/docs/exchange/simple-http-exchange#sending-data.md) methods in the exchange.
59+
To send response headers you would first modify the headers inside the `getResponseHeaders` method, and then send them using the `sendResponseHeaders` method. This process is simplified by using any of the [`send`](https://github.com/Ktt-Development/simplehttpserver/blob/main/docs/exchange/simple-http-exchange#sending-data.md) methods in the exchange.
6060

6161
A request may run multiple times if an exchange does not return any headers.
6262

‎docs/handler/throttled-handler.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: |
88

99
The `ThrottledHandler` limits the amount of simultaneous connections to a handler. The handler requires a [throttler](#throttlers), which determines how to allocate the connections.
1010

11-
You must use a [*multithreaded server*](https://github.com/Ktt-Development/simplehttpserver/tree/main/docs/server/multithreaded-server.md) for this handler to work properly.
11+
You must use a [*multithreaded server*](https://github.com/Ktt-Development/simplehttpserver/blob/main/docs/server/multithreaded-server.md) for this handler to work properly.
1212

1313
# Throttlers
1414

@@ -92,7 +92,7 @@ The `SessionThrottler` limits the amount of simultaneous connections a single se
9292

9393
A value of 0 means no connections allowed and -1 means unlimited connections allowed.
9494

95-
A `HttpSessionHandler` is required in order the handler to retrive sessions from the server. See [http session](https://github.com/Ktt-Development/simplehttpserver/tree/main/docs/exchange/http-session.md) for more details.
95+
A `HttpSessionHandler` is required in order the handler to retrive sessions from the server. See [http session](https://github.com/Ktt-Development/simplehttpserver/blob/main/docs/exchange/http-session.md) for more details.
9696

9797
```java
9898
HttpHandler handler = new HttpHandler(){
@@ -168,4 +168,4 @@ server.createContext("/", new ThrottledHandler(handler, throttler));
168168

169169
<hr>
170170

171-
[Multithreaded server is not processing requests in parallel](https://github.com/Ktt-Development/simplehttpserver/tree/main/docs/server/multithreaded-server#multithreaded-server-is-not-processing-requests-in-parallel.md)
171+
[Multithreaded server is not processing requests in parallel](https://github.com/Ktt-Development/simplehttpserver/blob/main/docs/server/multithreaded-server#multithreaded-server-is-not-processing-requests-in-parallel.md)

‎docs/server/adding-pages.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: |
66

77
# Adding Pages
88

9-
Pages (referred to as a context) can be added using the `createContext` method on a `SimpleHttpServer`. This method accepts a string, where the page will be located at; and a [handler](https://github.com/Ktt-Development/simplehttpserver/tree/main/docs/handler.md), which handles the request.
9+
Pages (referred to as a context) can be added using the `createContext` method on a `SimpleHttpServer`. This method accepts a string, where the page will be located at; and a [handler](https://github.com/Ktt-Development/simplehttpserver/blob/main/docs/handler.md), which handles the request.
1010

1111
```java
1212
SimpleHttpServer server = SimpleHttpServer.create(8080);
@@ -36,4 +36,4 @@ Contexts in a server are case sensitive and will use the most specific context a
3636

3737
This consequently means that any handler added to the root `/` context would handle any requests that don’t have a handler, since it’s the most specific one available.
3838

39-
To resolve this issue the libary provides a [root handler](https://github.com/Ktt-Development/simplehttpserver/tree/main/docs/handler/root-handler.md).
39+
To resolve this issue the libary provides a [root handler](https://github.com/Ktt-Development/simplehttpserver/blob/main/docs/handler/root-handler.md).

0 commit comments

Comments
 (0)