西安邮电大学《分布式计算原理及应用》实验报(7)

发布时间:2021-06-05

public String getUri() {

return uri;

}

}

3、 编写解析请求的功能程序

package http;

import java.io.OutputStream;

import java.io.IOException;

import java.io.FileInputStream;

import java.io.File;

public class Response {

private static final int BUFFER_SIZE = 1024;

Request request;

OutputStream output;

public Response(OutputStream output) {

this.output = output;

}

public void setRequest(Request request) {

精彩图片

热门精选

大家正在看